想要取得列表元素的語法跟字串取得字元一樣,使用 [ ] 就可以了。 ... for i in data: if isinstance(i, list): for j in i: print(j) else: print(i).
確定! 回上一頁