學(xué)習(xí)python語言,怎么記住各種庫?
首先,大家不要著急去收藏各種Python庫,其次了解python的一些常用庫就可以了,具體學(xué)到什么方向可以找個項目直接做,過程中接觸到什么庫再去學(xué)。
下面給大家介紹幾種查找Python庫的方法!
一、查看官方文檔
要知道有哪些標(biāo)準(zhǔn)庫,大家可以查看官方文檔:
比如常用的re、time、datetime、math、random、os、shutil、pickle、secrets、threading、multiprocessing、json....等等等等,官方文檔里介紹很詳細(xì)。
Python 標(biāo)準(zhǔn)庫:
study.yali.edu.cn/pythonhelp/library/index.html
python標(biāo)準(zhǔn)庫的電子書:
Python 3 Module of the Week:pymotw.com/3/index.html
另外,如果是不在標(biāo)準(zhǔn)庫里的新庫,但是比較大眾和常用的庫,比如requests、bs4、python-docx、xlwings....等等等等,建議直接看他們的官方文檔學(xué)習(xí)。在pypi上搜索到具體的庫,能看到庫的基本介紹、歷史版本等,里面基本會附帶官方文檔的鏈接。
pypi:https://pypi.org/
二、學(xué)會用 Google
明確自己的需求是用python來做什么,最好能簡單明了一些,比如搜索關(guān)鍵詞【Python+××庫】就會出現(xiàn)博客推薦的很多庫。

三、Github 搜索
Github上的awesome-python總結(jié)了Web 框架、網(wǎng)絡(luò)爬蟲、網(wǎng)絡(luò)內(nèi)容提取、模板引擎、數(shù)據(jù)庫、數(shù)據(jù)可視化、圖片處理、文本處理、自然語言處理、機(jī)器學(xué)習(xí)、日志、代碼分析等各個方向的python庫。
awesome-python:https://github.com/vinta/awesome-python
- 其他官方文檔資源 -
Python官網(wǎng):Welcome to Python.org
Python Wiki:BeginnersGuide - Python Wiki
Stack Overflow 社區(qū):Newest 'python' Questions
Flask 官網(wǎng):http://flask.pocoo.org/
Requests 官網(wǎng):http://cn.python-requests.org...
Numpy官網(wǎng):NumPy
Pandas官網(wǎng):Python Data Analysis Library
Matplotlib官網(wǎng):Matplotlib - Visualization with Python
Sklearn官網(wǎng):scikit-learn: machine learning in Python
tensorflow官網(wǎng):tf.io.read_file | TensorFlow Core v2.8.0
PEP8代碼的編碼規(guī)范:https://www.python.org/dev/pe...