tkinter 获取输入框的值AttributeError: 'NoneType' object has no attribute 'get'解决办法

AttributeError: ‘NoneType’ object has no attribute ‘get’ 当使用以下代码时,会出现如题错误python ent2=Entry(root,width=10).place(x=20,y=40,anchor='nw') num=ent2.get() 解决方法: 改成web ent2=Entry(root,width=10) ent2.place(x
相关文章
相关标签/搜索