Python 源程序就是一个特殊格式的文本文件, 可以使用任意文本编辑软件做 Python 的开发
Python 程序的 文件扩展名 通常都是 .py
执行 python 程序的三种方式:
python2 与 python3 解释器
交互器 (官方 shell,ipython)
IDE(pycharm)
python 的第一个程序:
- `print("hello python!")`
- `print("hello world!")`
常见的 python 错误:
手误
缩进
多个代码谢雨一行
语言支持 (python2.x 默认不支持中文)
python 常见错误单词列表:
* error 错误
* name 名字
* defined 已经定义
* syntax 语法
* invalid 无效
* Indentation 索引
* unexpected 意外的, 不期望的
* character 字符
* line 行
* encoding 编码
* declared 声明
* details 细节, 详细信息
* ASCII 一种字符编码
来源: http://www.bubuko.com/infodetail-3675878.html