- 博客(3)
- 收藏
- 关注
转载 【python】CSV的读写
1.写入csv数据import csvheader=['class','name','sex','height','year']rows=[[1,'xiaoming','male',168,23],[1,'xiaohong','female',162,22],[2,'xiaozhang','female',158,21],[2,'xiaoli','male',158,21...
2020-02-17 07:29:21
113
原创 多组list转换成dict
需求描述:当前有若干个list,其中一个为关键字模板keys,还有若干个为相对应的取值。如下:keys=['name','age','tel','sex']v1=['Ben',12,'10090',1]v2=['Rose',13,'99999',0]现在要把上面的keys和各组值转为字典(dict)。解决途径:使用zip函数(python 3.0+)。dict={k:v for ...
2020-02-16 17:46:45
695
原创 python 'NoneType' object has no attribute '_root'
AttributeError: ‘NoneType’ object has no attribute ‘_root’在获取tkinter Entry()出现错误,print控件的type也显示为<class ‘NoneType’>self.entry_name = Entry(self.frame, width = 12).grid(column = 3,row = 0)最后,...
2020-02-15 11:33:55
6256
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人