1.python解释器
python hello.py
python3 hello.py
一般用来 想要快速验证局部代码运行结果是否符合预期 的时候,使用2/3
2.python自带的交互模式,python shell
在终端输入python,看到>>>,就可以输入程序了
函数输入结束后,连敲2次回车
3.IPython:基于Python Shell的交互式解释器,比python shell多了一些使用特性,比如自动补全等。In [x]和Out [x]表示输入输出
ipython
In[1]: 输入代码
4.IDE-pycharm
5.脚本运行
vim hello.py
内容:
#! /usr/bin/env python3
print (