1 报错信息
Traceback (most recent call last):
File "E:/smallTools/python/code/tkinterTest/src/test/tkr_helloworld.py", line 3, in <module>
class Application(tk.Frame):
AttributeError: module 'tkinter' has no attribute 'Frame'
2 错误来源
这个是当我引入python tkinter 的hello world时运行报错
3 报错原因
py文件名或者当前py文件附件有以tkinter命名的py文件:tkinter.py
4 解决办法
修改文件名或者删除相应文件