[TOC]
<br>
### 一、下載Python3
官網地址:https://www.python.org

python 環境還是比較容易安裝的,直接下一步下一步即可。唯一需要注意的是在安裝過程中可以勾選“Add Python 3.x to PATH”或者安裝后配置環境變量,安裝后如果在cmd中輸入python和pip命令,沒有報錯就證明安裝成功了。
#### 檢查python版本
```
python -V
```
#### 檢查pip版本
```
pip -V
```
執行結果:
```
C:\Users\Administrator>python -V
Python 3.5.2
C:\Users\Administrator>pip -V
pip 9.0.1 from d:\360yp\vm\python35\lib\site-packages (python 3.5)
```
在python中,pip是個非常重要,但是又特別簡單的包管理工具,后面開發過程中,安裝一些模塊的時候會經常用到,這里暫時先不解釋。
### 二、開發IDE
我推薦新手使用 **pycharm** 學習python,正所謂*“工欲利其器必先利其器”*
官網:[https://www.jetbrains.com/pycharm/download/#section=windows](https://www.jetbrains.com/pycharm/download/#section=windows)

下載安裝后,百度“pyCharm 破解”即可獲得激活方式
### 三、巧用 Python 命令行
前面推薦新手使用pycharm進行編程,這里又介紹Python自帶的IDLE,有沒有矛盾?
當我們需要測試或調試某個內置函數的時候,使用交互命令行,有著特別方便的優勢哦。
**打開python 命令行:**
在cmd中直接輸入python即可
```python
C:\Users\Administrator>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+1
2
>>> print("Hello world")
Hello world
>>> name="Milton"
>>> name
'Milton'
>>> print(name)
Milton
>>> dir(name)
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs
__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__r
epr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', '
expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'issp
ace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip
', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
>>>
```
<hr style="margin-top:100px">
:-: 
***微信掃一掃,關注“python測試開發圈”,了解更多測試教程!***
- 前言
- chapter01_開發環境
- chapter02_字符串的使用
- chapter03_列表的使用
- chapter04_字典的使用
- chapter05_數字的使用
- chapter06_元組的使用
- chapter07_集合的使用
- chapter08_輸入輸出
- chapter09_控制流程
- chapter10_實例練習_登錄1
- chapter11_python函數入門
- chapter12_python中的類
- chapter13_輕松玩轉python中的模塊管理
- chapter14_掌握學習新模塊的技巧
- chapter15_通過os模塊與操作系統交互
- chapter16_子進程相關模塊(subprocess)
- chapter17_時間相關模塊(time & datetime)
- chapter18_序列化模塊(json)
- chapter19_加密模塊(hashlib)
- chapter20_文件的讀與寫
- chapter21_階段考核2_登錄
- chapter22_小小算法挑戰(排序&二分法)
- chapter23_用多線程來搞事!
- chapter24_HTTP接口請求(requests)
- chapter25_接口測試框架(pytest)
- chapter26_階段考核3_HTTP接口測試
- chapter27_HTML解析(pyquery)
- chapter28_階段考核4_爬蟲下載網易汽車
- chapter29_python中的那些編碼坑
- chapter30_MySQL數據庫操作
- chapter31 高級特性_迭代器與生成器
- chapter32 高級特性_裝飾器
- chapter33 高級特性_列表處理