Python 3.7 Documentation
Table of Content
What's new in Python 3.7?
1. Whetting Your Appetite
2. Using the Python Interpreter
3. An Informal Introduction to Python
4. More Control Flow Tools
5. Data Structures
6. Modules
7. Input and Output
8. Errors and Exceptions
9. Classes
10. Brief Tour of the Standard Library
11. Brief Tour of the Standard Library — Part II
12. Virtual Environments and Packages
13. What Now?
14. Interactive Input Editing and History Substitution
15. Floating Point Arithmetic: Issues and Limitations
16. Appendix
Installing Python Modules
Distributing Python Modules
1. Introduction
2. Lexical analysis
3. Data model
4. Execution model
5. The import system
6. Expressions
7. Simple statements
8. Compound statements
9. Top-level components
10. Full Grammar specification
1. Command line and environment
2. Using Python on Unix platforms
3. Using Python on Windows
4. Using Python on a Macintosh
Porting Python 2 Code to Python 3
Porting Extension Modules to Python 3
Curses Programming with Python
Descriptor HowTo Guide
Functional Programming HOWTO
Logging HOWTO
Logging Cookbook
Regular Expression HOWTO
Socket Programming HOWTO
Sorting HOW TO
Unicode HOWTO
HOWTO Fetch Internet Resources Using The urllib Package
Argparse Tutorial
An introduction to the ipaddress module
Argument Clinic How-To
Instrumenting CPython with DTrace and SystemTap
General Python FAQ
Programming FAQ
Design and History FAQ
Library and Extension FAQ
Extending/Embedding FAQ
Python on Windows FAQ
Graphic User Interface FAQ
“Why is Python Installed on my Computer?” FAQ
Introduction
Built-in Functions
Built-in Constants
Built-in Types
Built-in Exceptions
Text Processing Services
string
re
difflib
textwrap
unicodedata
stringprep
readline
rlcompleter
Binary Data Services
struct
codecs
Data Types
datetime
calendar
collections
collections.abc
heapq
bisect
array
weakref
types
copy
pprint
reprlib
enum
Numeric and Mathematical Modules
numbers
math
cmath
decimal
fractions
random
statistics
Functional Programming Modules
itertools
functools
operator
File and Directory Access
pathlib
os.path
fileinput
stat
filecmp
tempfile
glob
fnmatch
linecache
shutil
macpath
Data Persistence
pickle
copyreg
shelve
marshal
dbm
sqlite3
Data Compression and Archiving
zlib
gzip
bz2
lzma
zipfile
tarfile
File Formats
csv
configparser
netrc
xdrlib
plistlib
Cryptographic Services
hashlib
hmac
secrets
Generic Operating System Services
os
io
time
argparse
getopt
logging
logging.config
logging.handlers
getpass
curses
curses.ascii
curses.panel
platform
errno
ctypes
Concurrent Execution
threading
multiprocessing
The concurrent package
concurrent.futures
subprocess
sched
queue
_thread
_dummy_thread
dummy_threading
contextvars
Networking and Interprocess Communication
asyncio
socket
ssl
select
selectors
asyncore
asynchat
signal
mmap
Internet Data Handling
email
json
mailcap
mailbox
mimetypes
base64
binhex
binascii
quopri
uu
Structured Markup Processing Tools
html
html.parser
html.entities
XML Processing Modules
xml.etree.ElementTree
xml.dom
xml.dom.minidom
xml.dom.pulldom
xml.sax
xml.sax.handler
xml.sax.saxutils
xml.sax.xmlreader
xml.parsers.expat
Internet Protocols and Support
webbrowser
cgi
cgitb
wsgiref
urllib
urllib.request
urllib.parse
urllib.error
urllib.robotparser
http
http.client
ftplib
poplib
imaplib
nntplib
smtplib
smtpd
telnetlib
uuid
socketserver
http.server
http.cookies
http.cookiejar
xmlrpc
xmlrpc.client
xmlrpc.server
ipaddress
Multimedia Services
audioop
aifc
sunau
wave
chunk
colorsys
imghdr
sndhdr
ossaudiodev
Internationalization
gettext
locale
Program Frameworks
turtle
cmd
shlex
Graphical User Interfaces with Tk
tkinter
tkinter.ttk
tkinter.tix
tkinter.scrolledtext
IDLE
Other Graphical User Interface Packages
Development Tools
typing
pydoc
doctest
unittest
unittest.mock
unittest.mock
2to3 - Automated Python 2 to 3 code translation
test
Debugging and Profiling
bdb
faulthandler
pdb
The Python Profilers
timeit
trace
tracemalloc
Software Packaging and Distribution
... more
Tài liệu Python 3.7
Mục lục
Có gì mới trong Python 3.7?
1. Ngừng Appetite của bạn
2. Sử dụng trình thông dịch Python
3. Giới thiệu không chính thức cho Python
4. Công cụ kiểm soát luồng khác
5. Cấu trúc dữ liệu
6. Modules
7. Đầu vào và đầu ra
8. Lỗi và ngoại lệ
9. Lớp học
10. Giới thiệu sơ lược về Thư viện chuẩn
11. Tour ngắn của Thư viện chuẩn - Phần II
12. Môi trường ảo và các gói
13. Bây giờ là gì?
14. Thay đổi đầu vào tương tác và thay đổi lịch sử
15. Số học dấu chấm động: Các vấn đề và giới hạn
16. Phụ lục
Cài đặt mô-đun Python
Phân phối các mô-đun Python
1. Giới thiệu
2. Phân tích Lexical
3. Mô hình dữ liệu
4. Mô hình thực hiện
5. Hệ thống nhập khẩu
6. Biểu thức
7. Các câu lệnh đơn giản
8. Báo cáo hợp chất
9. Các thành phần cấp cao nhất
10. Đầy đủ đặc điểm ngữ pháp
1. Dòng lệnh và môi trường
2. Sử dụng Python trên nền tảng Unix
3. Sử dụng Python trên Windows
4. Sử dụng Python trên máy Macintosh
Chuyển mã Python 2 sang Python 3
Chuyển mô-đun mở rộng sang Python 3
Curses Lập trình bằng Python
Hướng dẫn HowTo Descriptor
Hàm lập trình chức năng HOWTO
Đăng nhập HOWTO
Đăng nhập Cookbook
Regular Expression HOWTO
Lập trình Socket HOWTO
Sắp xếp cách thức
Unicode HOWTO
Cách tải tài nguyên Internet bằng gói urllib
Hướng dẫn Argparse
Giới thiệu về mô-đun ipaddress
Làm thế nào để
Dụng cụ CPython với DTrace và SystemTap
Câu hỏi thường gặp về Python chung
Lập trình FAQ
Câu hỏi thường gặp về thiết kế và lịch sử
Câu hỏi thường gặp về thư viện và tiện ích
Câu hỏi thường gặp về mở rộng / nhúng
Câu hỏi thường gặp về Python trên Windows
Giao diện người dùng đồ họa
“Tại sao Python được cài đặt trên máy tính của tôi?”
Giới thiệu
Chức năng tích hợp sẵn
Các hằng số tích hợp
Các kiểu tích hợp
Ngoại lệ tích hợp
Dịch vụ xử lý văn bản
chuỗi
lại
difflib
textwrap
unicodedata
stringprep
readline
rlcompleter
Dịch vụ dữ liệu nhị phân
cấu trúc
codec
Loai du lieu
ngày giờ
lịch
bộ sưu tập
collections.abc
heapq
chia đôi
mảng
weakref
các loại
sao chép
pprint
reprlib
enum
Mô-đun toán học và toán học
số
môn Toán
cmath
số thập phân
phân số
ngẫu nhiên
số liệu thống kê
Mô-đun lập trình chức năng
itertools
functools
nhà điều hành
Quyền truy cập tệp và thư mục
pathlib
os.path
fileinput
stat
filecmp
tempfile
glob
fnmatch
linecache
tắt máy
macpath
Sự kiên trì dữ liệu
dưa chua
copyreg
xiên
nguyên soái
dbm
sqlite3
Nén dữ liệu và lưu trữ
zlib
gzip
bz2
lzma
zipfile
tarfile
Định dạng tệp
csv
configparser
netrc
xdrlib
plistlib
Dịch vụ mật mã
hashlib
hmac
bí mật
Dịch vụ hệ điều hành chung
hệ điều hành
io
thời gian
argparse
getopt
khai thác gỗ
logging.config
logging.handlers
vượt qua
lời nguyền
curses.ascii
curses.panel
nền tảng
errno
ctypes
Thi hành đồng thời
luồng
đa xử lý
Gói đồng thời
concurrent.futures
subprocess
lên lịch
xếp hàng
_thread
_dummy_thread
dummy_threading
bối cảnh
Giao tiếp mạng và Interprocess
asyncio
ổ cắm
ssl
lựa chọn
bộ chọn
asyncore
asynchat
tín hiệu
mmap
Xử lý dữ liệu Internet
e-mail
json
mailcap
hộp thư
mimetypes
base64
binhex
binascii
quopri
uu
Công cụ xử lý đánh dấu có cấu trúc
html
html.parser
html.entities
Mô-đun xử lý XML
xml.etree.ElementTree
xml.dom
xml.dom.minidom
xml.dom.pulldom
xml.sax
xml.sax.handler
xml.sax.saxutils
xml.sax.xmlreader
xml.parsers.expat
Giao thức và hỗ trợ Internet
trình duyệt web
cgi
cgitb
wsgiref
urllib
urllib.request
urllib.parse
urllib.error
urllib.robotparser
http
http.client
ftplib
poplib
imaplib
nntplib
smtplib
smtpd
telnetlib
uuid
socketserver
http.server
http.cookies
http.cookiejar
xmlrpc
xmlrpc.client
xmlrpc.server
địa chỉ IP
Dịch vụ đa phương tiện
audioop
aifc
sunau
làn sóng
chunk
màu sắc
imghdr
sndhdr
ossaudiodev
Quốc tế hóa
gettext
miền địa phương
Khung chương trình
rùa
cmd
sự rùng mình
Giao diện người dùng đồ họa với Tk
tkinter
tkinter.ttk
tkinter.tix
tkinter.scrolledtext
IDLE
Các gói giao diện người dùng đồ họa khác
Công cụ phát triển
đánh máy
pydoc
doctest
unittest
unittest.mock
unittest.mock
2to3 - Tự động hóa Python 2 đến 3 bản dịch mã
kiểm tra
Gỡ lỗi và lập hồ sơ
bdb
người phạm lỗi
pdb
Các Profilers Python
thời gian
dấu vết
tracemalloc
Bao bì và phân phối phần mềm
... hơn