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
相關文章
相關標籤/搜索