教程集 www.jiaochengji.com
教程集 >  脚本编程  >  php  >  正文 python如何运行一个python程序

python如何运行一个python程序

发布时间:2020-10-08   编辑:jiaochengji.com
教程集为您提供python如何运行一个python程序等资源,欢迎您收藏本站,我们将为您提供最新的python如何运行一个python程序资源

python如何运行一个python程序?

使用python的解释器运行:打开交互式解释器,写入“print‘hello world’”。

c8880b71661b80cbbbaa08dd78d7588.png

推荐:《Python教程》

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

99a4facdfbab622343e557742585f30.png

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

5aca7561561452662f194c109a9e56c.png

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

56b2bd87c35cd9632b636f24b67602f.png

总结如下。

0db5e2175e90808d9e324601ebc3853.png

以上就是python如何运行一个python程序的详细内容,更多请关注教程集其它相关文章!

  • 本文原创发布教程集,转载请注明出处,感谢您的尊重!
  • 您可能感兴趣的文章:
    python程序如何工作
    Python的特点(优点和缺点)
    sublime如何写python
    linux如何编写python脚本
    python解释器是什么
    python如何运行一个python程序
    linux如何运行python脚本
    Windows安装Python详解
    在vscode中编写Python的详细步骤
    运行我们的第一个python程序

    [关闭]
    ~ ~