e1 = Entry() e1.place(x=130,y=30) t1 = Text(root,height=1,) t1.place(x=130,y=70) def cal(): left = 0 right = 0 angle = e1.get() angle = int(angle) print(type(angle))
放在定義的函數裏邊
最後會得到結果
<class 'int'>
e1 = Entry() e1.place(x=130,y=30) t1 = Text(root,height=1,) t1.place(x=130,y=70) def cal(): left = 0 right = 0 angle = e1.get() angle = int(angle) print(type(angle))
放在定義的函數裏邊
最後會得到結果
<class 'int'>
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta