下述參考Python DOChtml
https://docs.python.org/zh-cn/3/library/index.htmlpython
datetime
--- 基本的日期和時間類型calendar
--- 日曆相關函數collections
--- 容器數據類型collections.abc
--- 容器的抽象基類heapq
--- 堆隊列算法bisect
--- 數組二分查找算法array
--- Efficient arrays of numeric valuesweakref
--- 弱引用types
--- Dynamic type creation and names for built-in typescopy
--- 淺層 (shallow) 和深層 (deep) 複製操做pprint
--- 數據美化輸出reprlib
--- Alternate repr()
implementationenum
--- Support for enumerationspathlib
--- 面向對象的文件系統路徑os.path
--- 常見路徑操做fileinput
--- Iterate over lines from multiple input streamsstat
--- Interpreting stat()
resultsfilecmp
--- 文件及目錄的比較tempfile
--- Generate temporary files and directoriesglob
--- Unix style pathname pattern expansionfnmatch
--- Unix filename pattern matchinglinecache
--- Random access to text linesshutil
--- High-level file operationsmacpath
--- Mac OS 9 路徑操做函數os
--- 操做系統接口模塊io
--- 處理流的核心工具time
--- 時間的訪問和轉換argparse
--- 命令行選項、參數和子命令解析器getopt
--- C-style parser for command line optionslogging
--- Python 的日誌記錄工具logging.config
--- 日誌記錄配置logging.handlers
--- Logging handlersgetpass
--- 便攜式密碼輸入工具curses
--- 終端字符單元顯示的處理curses.textpad
--- Text input widget for curses programscurses.ascii
--- Utilities for ASCII characterscurses.panel
--- A panel stack extension for cursesplatform
--- 獲取底層平臺的標識數據errno
--- Standard errno system symbolsctypes
--- Python 的外部函數庫contextvars
--- Context Variables
email
--- 電子郵件與 MIME 處理包json
--- JSON 編碼和解碼器mailcap
--- Mailcap file handlingmailbox
--- Manipulate mailboxes in various formatsmimetypes
--- Map filenames to MIME typesbase64
--- Base16, Base32, Base64, Base85 數據編碼binhex
--- 對binhex4文件進行編碼和解碼binascii
--- 二進制和 ASCII 碼互轉quopri
--- Encode and decode MIME quoted-printable datauu
--- Encode and decode uuencode fileshtml
--- 超文本標記語言支持html.parser
--- 簡單的 HTML 和 XHTML 解析器html.entities
--- HTML 通常實體的定義xml.etree.ElementTree
--- The ElementTree XML APIxml.dom
--- The Document Object Model APIxml.dom.minidom
--- Minimal DOM implementationxml.dom.pulldom
--- Support for building partial DOM treesxml.sax
--- Support for SAX2 parsersxml.sax.handler
--- Base classes for SAX handlersxml.sax.saxutils
--- SAX Utilitiesxml.sax.xmlreader
--- Interface for XML parsersxml.parsers.expat
--- Fast XML parsing using Expatwebbrowser
--- 方便的Web瀏覽器控制器cgi
--- Common Gateway Interface supportcgitb
--- Traceback manager for CGI scriptswsgiref
--- WSGI Utilities and Reference Implementationurllib
--- URL 處理模塊urllib.request
--- 用於打開 URL 的可擴展庫urllib.response
--- urllib 使用的 Response 類urllib.parse
--- Parse URLs into componentsurllib.error
--- urllib.request 引起的異常類urllib.robotparser
--- robots.txt 語法分析程序http
--- HTTP 模塊http.client
--- HTTP 協議客戶端ftplib
--- FTP protocol clientpoplib
--- POP3 protocol clientimaplib
--- IMAP4 protocol clientnntplib
--- NNTP protocol clientsmtplib
---SMTP協議客戶端smtpd
--- SMTP Servertelnetlib
--- Telnet clientuuid
--- UUID objects according to RFC 4122socketserver
--- A framework for network servershttp.server
--- HTTP 服務器http.cookies
--- HTTP state managementhttp.cookiejar
--- Cookie handling for HTTP clientsxmlrpc
--- XMLRPC 服務端與客戶端模塊xmlrpc.client
--- XML-RPC client accessxmlrpc.server
--- Basic XML-RPC serversipaddress
--- IPv4/IPv6 manipulation librarytyping
--- 類型標註支持pydoc
--- Documentation generator and online help systemdoctest
--- 測試交互性的Python示例unittest
--- 單元測試框架unittest.mock
--- mock object libraryunittest.mock
上手指南test
--- Regression tests package for Pythontest.support
--- Utilities for the Python test suitetest.support.script_helper
--- Utilities for the Python execution testssys
--- 系統相關的參數和函數sysconfig
--- Provide access to Python's configuration informationbuiltins
--- 內建對象__main__
--- 頂層腳本環境warnings
--- Warning controldataclasses
--- 數據類contextlib
--- Utilities for with
-statement contextsabc
--- 抽象基類atexit
--- 退出處理器traceback
--- 打印或檢索堆棧回溯__future__
--- Future 語句定義gc
--- 垃圾回收器接口inspect
--- 檢查對象site
--- Site-specific configuration hookparser
--- Access Python parse treesast
--- 抽象語法樹symtable
--- Access to the compiler's symbol tablessymbol
--- 與 Python 解析樹一塊兒使用的常量token
--- 與Python解析樹一塊兒使用的常量keyword
--- 檢驗Python關鍵字tokenize
--- Tokenizer for Python sourcetabnanny
--- 模糊縮進檢測pyclbr
--- Python class browser supportpy_compile
--- Compile Python source filescompileall
--- Byte-compile Python librariesdis
--- Python 字節碼反彙編器pickletools
--- Tools for pickle developersposix
--- The most common POSIX system callspwd
--- 用戶密碼數據庫spwd
--- The shadow password databasegrp
--- The group databasecrypt
--- Function to check Unix passwordstermios
--- POSIX style tty controltty
--- 終端控制功能pty
--- Pseudo-terminal utilitiesfcntl
--- The fcntl
and ioctl
system callspipes
--- Interface to shell pipelinesresource
--- Resource usage informationnis
--- Interface to Sun's NIS (Yellow Pages)
對於以上標準庫,參考PythonDOC:https://docs.python.org/zh-cn/3/library/index.htmlios
經常使用的庫:git
timeweb
datetime正則表達式
random 隨機數算法
os 與操做系統交互的接口sql
sys 與Python程序自己相關shell
hashlib數據庫
shutil 高級的 文件、文件夾、壓縮包 處理模塊
json&pickle 補充eval函數的功能(將一個字符串轉成python對象)
logging 打印日誌
string
————————(我是分割線)————————
參考:
1. https://docs.python.org/zh-cn/3/library/index.html
備註:
初次編輯時間:2019年10月3日09:42:32
環境:Windows 7 / Python 3.7.2