class sha pre 保存 top mini 文件的 内存
- 首先写一个脚本
- test.py
- ##
- print(‘hello world‘)
- ##
- 右键属性->C:\Users\Administrator\Desktop
- cmd->C:\Users\Administrator>python3 C:\Users\Administrator\Desktop\Python3.6\test.py
- hello world
- 执行步骤
- 1 先启动Python解释器
- 2 Python解释器把文件内容从硬盘读入内存
- 3 读入内存后再解释执行
- python的两种执行模式
- 1 交互的方式
- 优点:即时调试层序,调试方便
- 缺点:无法永久保存代码
- 2 文件的方式
- 优点:永久保存代码
- 缺点:不能即时调试代码
python是如何执行的
来源: http://www.bubuko.com/infodetail-2290919.html