美文网首页
Python 入门系列(一)—— 开发环境搭建

Python 入门系列(一)—— 开发环境搭建

作者: izerone | 来源:发表于2017-05-24 23:02 被阅读26次

一、Windows 下 Python 安装

二、Linux 下 Python 安装

  • Python 是 Linux 系统的标配,不需要重新安装
  • 默认的 Python 命令支持自动补齐,建议安装 iPython,安装命令:sudo apt -get install ipython
  • 使用 vim 编辑源文件,使用 python 命令运行

三、Python 文件类型

1.文件编译过程

Python 文件编译过程

2. 文件类型

  • .py 文件
  • .pyc 文件,生成命令:python -m py_compile hello.py
    • 优势:能够提高程序的加载效率,不能够提高程序的运行效率
  • .pyo 文件,生成命令:python -o -m py_compile hello.py
    • 优势:优化编译的 .pyc 文件

四、开发工具推荐

相关文章

网友评论

      本文标题:Python 入门系列(一)—— 开发环境搭建

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