错误示范:from tkinter import *root = Tk()e= Entry(root)e.pack()entry = e.get()root.mainloop()print("Entered text:"+entry)返回:Entered text:问题:使用get()时返回空值原因:Your eventual second problem is that the text would anyhow be printed only after the main
错误示范:from tkinter import *root = Tk()e= Entry(root)e.pack()entry = e.get()root.mainloop()print("Entered text:"+entry)返回:Entered text:问题:使用get()时返回空值原因:Your eventual second problem is that the text would anyhow be printed only after the main