Python 版本过旧:ImportError: cannot import name '_setup_dialog` from 'tkinter.simpledialog' 遇到这个报错,是因为 Python 版本太旧。 以 Python 3.9 为例,最新的 IDLE 3.9 所使用的 _setup_dialog 函数是在 Python 3.9.5 添加的。
When use IDLE to open a file and start a new IDLE windows from "Python Shell" button, you can import the modules that are the child modules in the module "idlelib", such as "help", "pyshell". Think ...