➢ w (write):覆蓋寫入內容. ➢ a (append): 在後加入新內容. 開啟檔案. 2 infile ... # 將dictionary 寫入CSV 檔 writer = csv.DictWriter(csvfile, fieldnames=columns ...
確定! 回上一頁