1、安装python
windows需去官网下载–安装–配置环境变量
mac直接耍,貌似直接2.7.10版本
#查看python版本信息
python --version

#进入python中并退出python
dingding_code/trunk/sso/:python [21:45:12]
Python 2.7.10 (default, Aug 17 2018, 19:45:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

2、第一个python程序
dingding_code/trunk/sso/:python [21:46:11]
Python 2.7.10 (default, Aug 17 2018, 19:45:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print 'hello world.'
hello world.

但是该操作不能持久化,因此我们采用文本文件将该信息保存下来
1、新建first.py文件并键入文件内容,例如:print ‘hello world!!!’

2、在cmd中运行该py文件
