📅  最后修改于: 2022-03-11 14:47:09.276000             🧑  作者: Mango
with open('dict.csv', 'w') as csv_file:
writer = csv.writer(csv_file)
for key, value in mydict.items():
writer.writerow([key, value])