如果要把串列裡的資料進行運算的話,直觀的會直接加減乘除,把剛剛的list乘2 print(list*2). 結果: [1, 2, 3, 4, 1, 2, 3, 4] 結果不如預期,使用Python 的list 資料 ...
確定! 回上一頁