import csvdef save_file(file_path, title, data):with open(file_path, 'a', newline='', encoding='utf-8-sig') as csvfile:spamwriter = csv.writer(csvfile)spamwriter.writerow(title)for i in data:spamwriter.writerow(i)
1500字范文,内容丰富有趣,写作好帮手!
时间:2021-02-10 23:18:38
import csvdef save_file(file_path, title, data):with open(file_path, 'a', newline='', encoding='utf-8-sig') as csvfile:spamwriter = csv.writer(csvfile)spamwriter.writerow(title)for i in data:spamwriter.writerow(i)