使用Python的tkinter时报错AttributeError: ‘_tkinter.tkapp’ object has no attribute ‘pack’ 解决方法 检查你的代码,主窗口不能使用pack()方法在代码的末尾设置监听mainloop()