Windows系统如何使用命令行运行Python文件

1.在IDLE中编写Python文件(hello.py)并保存到E:\Python3Code(你自己指定的文件夹)中

2.Win+R→输入cmd→进入文件夹(cd命令)→输入dir→输入python 文件名.py即可运行

输入的命令依次有

E:

cd Python3Code

dir

python hello.py

猜你喜欢

转载自blog.csdn.net/xushunag/article/details/81540598