发布时间:2019-09-08 09:08:39编辑:auto阅读(2983)
shutdown={"yunfeiyang":{"username":"yunfeiyang","binding_house":{0:"1",1:"2"},"register_time":"2018-20"}}
import csv
csvfile = file('csvtest.csv', 'wb')
writer = csv.writer(csvfile)
writer.writerow(['username','binding_hourse','register_time'])
list1=[]
for i in shutdown.values():
s=tuple(list(i.values()))
list1.append(s)
writer.writerows(list1)
上一篇: python 脚本实现备份文件
下一篇: python:logging模块(记录打
47860
46423
37309
34755
29329
25988
24938
19965
19561
18047
5804°
6430°
5944°
5973°
7078°
5924°
5959°
6453°
6415°
7796°