- 博客(2)
- 收藏
- 关注
原创 用tkinter时,想要Entry的值输出,调用了get(),报错:AttributeError: 'NoneType' object has no attribute 'get'
用tkinter时,想要Entry的值输出,调用了get(),报错:AttributeError: ‘NoneType’ object has no attribute ‘get’原来代码:from tkinter import *root = Tk()theLabel1=Label(root,text="作品:")theLabel1.grid(row=0,column=0)theLa...
2019-11-28 19:51:55
851
原创 TabError: inconsistent use of tabs and spaces in indentation
TabError: inconsistent use of tabs and spaces in indentation意思是空格和缩进不匹配虽然肉眼看上去格式一样,但python是能区分出空格和缩进的,不能混用解决方法是用sublime,鼠标选中后形成阴影,就能看出点状的是空格,横线的代表缩进这里是混用了,所以报错...
2019-11-26 18:50:44
171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人