代码没有问题,我可以运行的,检查下配置吧
估计是你python没有安装吧,老弟安装:https://docs.python.org/zh-cn/3/using/windows.html
环境的问题,没我配置好