刚刚学习python写一篇笔记。
root=tkinter.Tk()是一个比较简单的语句。但是在一运行的时候,会报AttributeError: module ‘tkinter’ has no attribute 'TK’的错误。
是因为要区分大小写啦。Tk!
AttributeError: module ‘tkinter‘ has no attribute ‘TK‘
最新推荐文章于 2023-03-12 20:44:37 发布
刚刚学习python写一篇笔记。
root=tkinter.Tk()是一个比较简单的语句。但是在一运行的时候,会报AttributeError: module ‘tkinter’ has no attribute 'TK’的错误。
是因为要区分大小写啦。Tk!