参考:https://blog.csdn.net/shiliqiang167/article/details/89402489
https://blog.csdn.net/m0_47095451/article/details/109626827
一、tkinter
在安装Python时会有选项
如果安装后无法导入tkinter,原因可能是你没选。如果可以重装就重装一次。不想重装就可以用以下命令:
pip install tkinter -i https://mirrors.tuna.tsinghua.edu.cn/ --trusted-host https://mirrors.tuna.tsinghua.edu.cn/
内置 tkinter模块,可以进行python和tcl交互,捆绑了 Tcl/Tk 8.6 线程。
import Tkinter
interp = Tkinter.Tcl