①cmd 进入行命令; ②输入 “python” + “空格”,即 ”python “;将已经写好的脚本文件拖拽到当前光标位置,然后敲回车运行即可。 转载于:https://www.cnblogs.com/benpao1314/p/9619870.html