获取“NameError:name'Tk'未定义”错误iam使用python 3.7.1
from tkinter import * root = Tk() root.mainloop()
我通过将脚本文件从tkinter.py重命名为hello.py来解决了这个问题