Python如何运行一个python程序
1、使用python的解释器运行:打开交互式解释器,写入“print‘hello world’”。

2、将文件名改为“hello.py”,“py”是后缀名。

3、打开刚才写的代码,点击“Run”排瞧→“run module”,或者直接按“F5”,运行代码。

4、通过Windows命令运行:找到“hello.py”的文件,输入“python hello.py”互颂,即可运行程序。

5、总毙栗扯结如下。

阅读量:111
阅读量:181
阅读量:104
阅读量:193
阅读量:118