美文网首页Python
Python 入门

Python 入门

作者: 拙峰朽木 | 来源:发表于2017-05-08 15:20 被阅读12次

安装

安装路径为:https://www.python.org/
目前分为:2x和3x,两个版本差距比较大,还存在兼容问题。
具体安装步骤自行百度。
我使用的linux系统默认安装了Python,在终端中敲入:“Python -V"
就能看到你当前Python的版本

image.png

hello world

随便打开个文本编译器,写入

print ('hello world')

然后保存为hello_world.py,注意保存格式为py

image.png

然后在终端中输入:

python hello_world.py

有图有真相:

image.png

相关文章

网友评论

    本文标题: Python 入门

    本文链接:https://www.haomeiwen.com/subject/rywmtxtx.html