Integrated Development Environment

PyCharm

Download Link:

https://www.jetbrains.com/pycharm/download/

Installation Link:

http://www.runoob.com/w3cnote/pycharm-windows-install.html

Visual Studio Code

Download Link:

https://code.visualstudio.com

Anaconda

Download Link:

https://www.anaconda.com/products/individual

国内镜像源

阿里云   http://mirrors.aliyun.com/pypi/simple/

豆瓣     http://pypi.doubanio.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

华中科技大学     https://pypi.hustunique.com/

以下安装更新需以管理员身份运行命令窗口

CMD 更新pip

python -m pip install --upgrade pip

更新失败,提示 "Script file 'D:\Anaconda3\Scripts\pip-script.py' is not present.",重新安装pip

easy_install pip

CMD 运行jupyter

conda

jupyter notebook

Anaconda Prompt 安装Plugins模块

pip install -i https://pypi.douban.com/simple/ jupyter_contrib_nbextensions

jupyter contrib nbextension install --user

pip install -i https://pypi.douban.com/simple/ jupyter_nbextensions_configurator

Anaconda Prompt 安装Pdf模块

pip install pdfplumber -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

pip install PyPDF2 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

pip install pypiwin32 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

Anaconda Prompt 安装Word模块

pip install python-docx -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

if ... elif ... else ...

if condition_A:

   do thing_A

elif condition_B:

   do thing_B

else:

   do thing_C

while

while condition_A:

   do thing_A

for

for index in list:

   do thing_A

continue 和 break

continue 跳出当前本次循环;

break 跳出当前整个循环。