Python资源

1,安装Python:

 

Linux、Windows、Apple均可,或者通过应用商店,或者从官网下载安装。

Linux可以apt-get,但往往不是最新版。最新版从官网下载安装更好。

 

2,安装/升级模块:

 

2.1,更改pip源:

2.1.1,临时方法:pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple

阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
2.1.2,永久方法:

a,在pycharm:File >Settings > Project: XXXX> Project Interpreter

  右边加号。然后点Manager Repositories

b,在C:\Users\用户 目录下面,新建一个pip文件夹。

  在pip文件夹下新建pip.ini文件

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

 

2.2,用法

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 下载安装脚本

$ sudo python get-pip.py # 运行安装脚本

$ sudo python3 get-pip.py

$ sudo apt-get install python-pip

python -m pip install --upgrade pip

pip install -U pip

sudo easy_install --upgrade pip

pip install Django==1.7

pip install --upgrade SomePackage

pip search SomePackage

pip show 

pip show -f SomePackage

pip list

pip list -o

python3 -m pip install XXX 

python -m pip install SomePackage

python -m pydoc numpy

Console:  dir()  help()  sys.modules.keys()  module.__path__   pip show module

python -m pydoc -p 1234

>>>help('modules') then help(modulename)

 

 

3,资料 

 

3.1,官网资料

https://www.python.org/

https://docs.python.org/3/

https://docs.python.org/zh-cn/3/

 

3.2,模块和包:The Python Package Index (PyPI)

https://pypi.org/

 

3.3,国内外Python教程

http://c.biancheng.net/python/

https://www.runoob.com/python3/python3-tutorial.html

https://www.php.cn/python3/python3-basic-syntax.html

https://www.liaoxuefeng.com/wiki/1016959663602400

https://docs.python-guide.org/

https://www.cnblogs.com/augustone/p/11359869.html

https://docs.python.org/3/index.html

https://www.iplaypy.com/jichu/

https://www.tutorialspoint.com/python/index.htm

https://www.learnpython.org/

https://www.javatpoint.com/python-tutorial

https://python4kids.brendanscott.com/

https://www.programiz.com/python-programming

 

4,学习网站

https://pythonguidecn.readthedocs.io/zh/latest/intro/learning.html

 

5,交互式

https://www.python.org/shell/

https://thepythonguru.com/

posted @ 2020-07-20 19:23  Augustone  阅读(145)  评论(0编辑  收藏  举报