<第一章>Python环境配置

来源:互联网 发布:中国软件企业排名 编辑:程序博客网 时间:2024/05/20 04:47

目录列表

  • Python环境配置
    • Python语言特点
    • Python简介
      • Python的历史由来
      • Python的现状
      • Python的应用场景
        • Python能干什么
        • 使用Python的公司
    • Python开发环境配置
      • Windows 下安装Python注意事项
      • Windows下安装配置pip

Python环境配置

Python语言特点:

1、解释型编程语言,可直接执行,无需编译,发现Bug后立即修改。
2、代码重用性高,可以把包含某个功能的程序当成模块导入其他程序中使用,因而其模块库庞大到恐怖,几乎是无所不能。
3、跨平台性好,几乎可以不加修饰的用在不同平台之间。


Python简介

Python的历史由来

Python源代码遵循GPL(GNU General Public License)协议。任何个人用户都可以免费使用

Python的现状

Python的应用场景:

Python能干什么

  • 系统编程
  • 图形处理
  • 数学处理
  • 文本处理
  • 数据库编程
  • 网络编程
  • Web编程
  • 多媒体应用
  • PYMO引擎

使用Python的公司

  • Reddit Dropbox
  • 豆瓣网
  • Django
  • Fabric
  • EVE
  • Blender
  • BitTorrent
  • Ubuntu Software Center
  • YUM
  • Civilization IV
  • Battlefield2
  • Google
  • NASA
  • Industrial Light & Magic
  • Yahoo!Groups
  • YouTube
  • Cinema 4D
  • Autodest Maya
  • gedit
  • GIMP
  • Minecraft
  • MySQL Workbench
  • Digg
  • Mozilla
  • Quora
  • Path
  • Pinterest
  • SlideShare
  • Yelp
  • Slide

Python开发环境配置

Python在PC三大主流平台(Windows、Linux 和 OS X)都可以使用
Python目前主要有两个版本:Python2和python3

Windows 下安装Python注意事项

默认情况下Add python.ext to Path这个组件式未选择的,将它勾选上,以确保将Python的路径加入系统环境中。

Python执行命令

python -v  #查看当前python版本python -h  #查看帮助文档

Windows下安装配置pip

pip的服务器,安装源在国外,国内使用会受限制,有一个变通方法就是将pip的安装源指向国内的镜像源。
Windows中pip的配置文件是 %HOME%/pip/pip.ini (例如:C:\User\sniper\pip\pip.ini)

[global]index-url = https://pypi.mirrors.ustc.edu.cn/simple#index-url = https://pypi.hustunique.com/simple#index-url = https://pypi.douban.com/simple>>> python -m pip install --upgrade pip