我正在嘗試在python中爲Jira表格格式編寫解析器,將數據放入列表中。以下樣本是基礎。我想提取每個子元素的表的數據作爲列表,在下一步中應該由另一個函數處理...參見下面的內容。我剛開始編程,實際上我真的不知道該怎麼做,如果你能給我任何想法如何處理,我會很高興。用Python解析Jira表格格式3
第一:在列表轉換JIRA表中的數據:
|| tablehead 1 || tablehead 2 || tablehead 3 || tablehead 4|| tablehead5 ||
| text1 | text1 | text1 | text1 | text1 | --> subelement 1 --> list 1
| text2 | text2 | text2 | text2 | text2 | --> subelement 2 --> list 2
...more subelements |text|...
返回的列表可以看起來像:
["text1", "text1", "text1", "text1", "text1"] list1
["text2", "text2", "text2", "text2", "text2"] list2
...等。
其次另一個功能通吃的名單和做的東西...... 思想是這樣的:
for list in lists:
do sth with content of every list
...etc
@Elodin我希望這有助於提前 感謝
haselere
請問您可以添加您的示例代碼? –