Updates di-yi-ge-python-cheng-xu.md

Auto commit by GitBook Editor
pull/1/head
两点水 2017-06-07 21:04:46 +08:00
parent f124fc4514
commit 731c217589
3 changed files with 16 additions and 14 deletions

View File

@ -2,6 +2,6 @@
* [前言](README.md)
* [第一个Python程序](di-yi-ge-python-cheng-xu.md)
- [一、Python 简介](yi-3001-python-jian-jie.md)
* [一、Python 简介](yi-3001-python-jian-jie.md)
* [二、Python 的安装 ](er-3001-python-de-an-zhuang.md)

View File

@ -4,19 +4,7 @@
# 二、Python 的安装 #
因为 Python 是跨平台的,它可以运行在 Windows、Mac 和各种 Linux/Unix 系统上。目前Python 有两个版本,一个是 2.x 版,一个是 3.x版这两个版本是不兼容的。本草根安装的是 3.6.1 版本的。
至于在哪里下载,本草根建议最好直接官网下载啦,随时下载下来的都是最新版本。官网地址:[https://www.python.org/](https://www.python.org/)
本草根是 windows 系统下载完后直接安装不过这里记得勾上Add Python 3.6 to PATH然后点 “Install Now” 即可完成安装。如果没有勾上这个,就必须要自己配置环境变量了,至于如何配置,跟 JAVA 的差不多,具体可以 Google 一下。
![Python安装.png](http://upload-images.jianshu.io/upload_images/2136918-2bf6591f0a12e80b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
安装完成后,打开命令提示符窗口,敲入 python 后,出现下面的情况,证明 Python 安装成功了。你看到提示符 >>> 就表示我们已经在 Python交互式环境中了可以输入任何 Python 代码,回车后会立刻得到执行结果。
![运行python.png](http://upload-images.jianshu.io/upload_images/2136918-817c22f802e8cfce.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
# 三、第一个 Python 程序 #

View File

@ -0,0 +1,14 @@
# 二、Python 的安装 #
因为 Python 是跨平台的,它可以运行在 Windows、Mac 和各种 Linux/Unix 系统上。目前Python 有两个版本,一个是 2.x 版,一个是 3.x版这两个版本是不兼容的。本草根安装的是 3.6.1 版本的。
至于在哪里下载,本草根建议最好直接官网下载啦,随时下载下来的都是最新版本。官网地址:[https://www.python.org/](https://www.python.org/)
本草根是 windows 系统下载完后直接安装不过这里记得勾上Add Python 3.6 to PATH然后点 “Install Now” 即可完成安装。如果没有勾上这个,就必须要自己配置环境变量了,至于如何配置,跟 JAVA 的差不多,具体可以 Google 一下。
![Python安装.png](http://upload-images.jianshu.io/upload_images/2136918-2bf6591f0a12e80b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
安装完成后,打开命令提示符窗口,敲入 python 后,出现下面的情况,证明 Python 安装成功了。你看到提示符 >>> 就表示我们已经在 Python交互式环境中了可以输入任何 Python 代码,回车后会立刻得到执行结果。
![运行python.png](http://upload-images.jianshu.io/upload_images/2136918-817c22f802e8cfce.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)