写入:
with open(qa_csv_path, "w") as csv_file: # 设定写入模式 csv_write = csv.writer(csv_file, dialect=‘excel‘) for l in write_list: csv_write.writerow(l)读取:
写入/读取csv文件(使用Python的csv包)
原文:https://www.cnblogs.com/gagaein/p/14801750.html