for i in data: if isinstance(i, list): for j in i: print(j) else: ... 如果列表中的元素都是數字,要將所有數字相加,可以使用迴圈,像這樣:
確定! 回上一頁