📜  python csv to excel - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:09.276000             🧑  作者: Mango

代码示例3
with open('dict.csv', 'w') as csv_file:  
    writer = csv.writer(csv_file)
    for key, value in mydict.items():
       writer.writerow([key, value])