Hướng dẫn where is python library source code? - mã nguồn thư viện python ở đâu?

Điều đó sẽ phụ thuộc vào những gì bạn định nghĩa là thư viện tiêu chuẩn.

Các tài liệu Python cho biết:

... Hướng dẫn tham khảo thư viện này mô tả thư viện tiêu chuẩn được phân phối với Python. Nó cũng mô tả một số thành phần tùy chọn thường được bao gồm trong các bản phân phối Python.

Thư viện tiêu chuẩn Python sườn rất rộng, cung cấp một loạt các cơ sở như được chỉ định bởi bảng nội dung dài được liệt kê dưới đây. Thư viện chứa các mô-đun tích hợp (được viết bằng C) cung cấp quyền truy cập vào chức năng hệ thống như tệp I/O mà nếu không các lập trình viên Python không thể truy cập được, cũng như các mô-đun được viết bằng Python cung cấp các giải pháp tiêu chuẩn cho nhiều vấn đề xảy ra lập trình hàng ngày. Một số trong các mô-đun này được thiết kế rõ ràng để khuyến khích và tăng cường tính di động của các chương trình Python bằng cách trừu tượng hóa các tính năng đặc trưng của nền tảng thành API trung lập nền tảng., offering a wide range of facilities as indicated by the long table of contents listed below. The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.

Nếu bạn thực hiện một tiêu chí rộng rãi, tài liệu Python trả lời rõ ràng những gì bạn đang yêu cầu và tôi trích dẫn:

Khám phá nội bộ Cpython.

Bố cục mã nguồn cpython.

Hướng dẫn này cung cấp một cái nhìn tổng quan về cấu trúc mã CPython. Nó phục vụ như một bản tóm tắt các vị trí tệp cho các mô -đun và tích hợp.

Đối với các mô -đun Python, bố cục điển hình là:

Lib/.py
Modules/_.c 
Lib/test/test_.py
Doc/library/.rst

Đối với các mô-đun chỉ mở rộng, bố cục điển hình là:

Modules/module.c
Lib/test/test_.py
Doc/library/.rst

Đối với các loại tích hợp, bố cục điển hình là:

Objects/object.c
Lib/test/test_.py
Doc/library/stdtypes.rst

Đối với các chức năng tích hợp, bố cục điển hình là:

Python/bltinmodule.c
Lib/test/test_builtin.py
Doc/library/functions.rst

Một số ngoại lệ:

builtin type int is at Objects/longobject.c
builtin type str is at Objects/unicodeobject.c
builtin module sys is at Python/sysmodule.c
builtin module marshal is at Python/marshal.c
Windows-only module winreg is at PC/winreg.c

GH-97669: Xóa tập lệnh ví dụ lỗi thời (#97675) (#98167)

Remove outdated example scripts of the Tools/scripts/ directory:

* gprof2html.py
* md5sum.py
* nm2def.py
* pathfix.py
* win_add2path.py

Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.

e0ae9dd

Mặc dù tham chiếu ngôn ngữ Python mô tả cú pháp chính xác và ngữ nghĩa của ngôn ngữ Python, hướng dẫn tham khảo thư viện này mô tả thư viện tiêu chuẩn được phân phối với Python. Nó cũng mô tả một số thành phần tùy chọn thường được bao gồm trong các bản phân phối Python.The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.

Thư viện tiêu chuẩn Python sườn rất rộng, cung cấp một loạt các cơ sở như được chỉ định bởi bảng nội dung dài được liệt kê dưới đây. Thư viện chứa các mô-đun tích hợp (được viết bằng C) cung cấp quyền truy cập vào chức năng hệ thống như tệp I/O mà nếu không các lập trình viên Python không thể truy cập được, cũng như các mô-đun được viết bằng Python cung cấp các giải pháp tiêu chuẩn cho nhiều vấn đề xảy ra lập trình hàng ngày. Một số trong các mô-đun này được thiết kế rõ ràng để khuyến khích và tăng cường tính di động của các chương trình Python bằng cách trừu tượng hóa các tính năng đặc trưng của nền tảng thành API trung lập nền tảng.

Các trình cài đặt Python cho nền tảng Windows thường bao gồm toàn bộ thư viện tiêu chuẩn và thường cũng bao gồm nhiều thành phần bổ sung. Đối với các hệ điều hành giống như unix, Python thường được cung cấp dưới dạng một tập hợp các gói, do đó, có thể cần phải sử dụng các công cụ đóng gói được cung cấp với hệ điều hành để có được một số hoặc tất cả các thành phần tùy chọn.

Ngoài thư viện tiêu chuẩn, còn có một bộ sưu tập ngày càng tăng gồm vài nghìn thành phần (từ các chương trình và mô -đun riêng lẻ đến các gói và toàn bộ khung phát triển ứng dụng), có sẵn từ Chỉ số gói Python.

  • Giới thiệu
    • Ghi chú về tính khả dụng
  • Chức năng tích hợp sẵn
  • Hằng số tích hợp
    • Các hằng số được thêm bởi mô -đun site
  • Các loại tích hợp
    • Kiểm tra giá trị sự thật
    • Hoạt động Boolean - and, or,
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      0
    • So sánh
    • Các loại số -
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      1,
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      2,
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      3
    • Loại vòng lặp
    • Các loại trình tự -
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      4,
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      5,
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      6
    • Loại chuỗi văn bản -
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      7
    • Các loại trình tự nhị phân -
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      8,
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      9,
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      0
    • Đặt loại -
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      1,
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      2
    • Các loại ánh xạ -
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      3
    • Loại quản lý bối cảnh
    • Loại chú thích các loại - Bí danh chung, Liên minhGeneric Alias, Union
    • Các loại tích hợp khác
    • Thuộc tính đặc biệt
    • Giới hạn độ dài chuyển đổi chuỗi số nguyên
  • Ngoại lệ tích hợp
    • Bối cảnh ngoại lệ
    • Kế thừa từ các trường hợp ngoại lệ tích hợp
    • Lớp cơ sở
    • Ngoại lệ cụ thể
    • Cảnh báo
    • Phân cấp ngoại lệ
  • Dịch vụ xử lý văn bản
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      4 - Các hoạt động chuỗi phổ biến
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      5 - Hoạt động biểu thức chính quy
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      6 - Người trợ giúp cho máy tính Deltas
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      7 - ​​Bao bọc và điền văn bản
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      8 - Cơ sở dữ liệu Unicode
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      9 - Chuẩn bị chuỗi Internet
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      0 - Giao diện GNU Readline
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      1 - Hàm hoàn thành cho GNU Readline
  • Dịch vụ dữ liệu nhị phân
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      2 - diễn giải byte là dữ liệu nhị phân được đóng gói
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      3 - Các lớp đăng ký Codec và cơ sở
  • Loại dữ liệu
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      4 - Các loại ngày và thời gian cơ bản
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      5 - Hỗ trợ múi giờ của IANA
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      6-Các chức năng liên quan đến lịch chung
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      7 - Kiểu dữ liệu container
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      8 - Các lớp cơ sở trừu tượng cho các thùng chứa
    • Python/bltinmodule.c
      Lib/test/test_builtin.py
      Doc/library/functions.rst
      
      9 - Thuật toán hàng đợi Heap
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      0 - Thuật toán chia đôi mảng
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      1 - Các mảng hiệu quả của các giá trị số
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      2 - Tài liệu tham khảo yếu
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      3-Tạo loại động và tên cho các loại tích hợp
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      4 - Hoạt động sao chép nông và sâu
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      5 - Dữ liệu Máy in đẹp
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      6 - Thực hiện thay thế
      builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      7
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      8 - Hỗ trợ liệt kê
    • builtin type int is at Objects/longobject.c
      builtin type str is at Objects/unicodeobject.c
      builtin module sys is at Python/sysmodule.c
      builtin module marshal is at Python/marshal.c
      Windows-only module winreg is at PC/winreg.c
      
      9-Chức năng hoạt động với các cấu trúc giống như đồ thị
  • Các mô -đun số và toán học
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      0 - Các lớp cơ sở trừu tượng số
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      1 - Chức năng toán học
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      2 - Chức năng toán học cho các số phức tạp
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      3 - Điểm cố định thập phân và số học điểm nổi
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      4 - Số hợp lý
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      5-Tạo số giả ngẫu nhiên
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      6 - Chức năng thống kê toán học
  • Các mô -đun lập trình chức năng
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      7 - Các chức năng tạo ra các trình lặp lại cho vòng lặp hiệu quả
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      8-Các chức năng và hoạt động bậc cao trên các đối tượng có thể gọi được
    • Remove outdated example scripts of the Tools/scripts/ directory:
      
      * gprof2html.py
      * md5sum.py
      * nm2def.py
      * pathfix.py
      * win_add2path.py
      
      Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
      9 - Các toán tử tiêu chuẩn là chức năng
  • Truy cập tệp và thư mục
    • e0ae9dd0-Đường dẫn hệ thống tập tin hướng đối tượng
    • e0ae9dd1 - Thao tác tên đường dẫn phổ biến
    • e0ae9dd2 - Lặp lại các dòng từ nhiều luồng đầu vào
    • e0ae9dd3 - Kết quả diễn giải e0ae9dd4
    • e0ae9dd5 - So sánh tệp và thư mục
    • e0ae9dd6 - Tạo các tệp và thư mục tạm thời
    • e0ae9dd7 - Mở rộng mẫu đường dẫn kiểu Unix
    • e0ae9dd8 - Kết hợp mẫu tệp UNIX
    • e0ae9dd9 - Truy cập ngẫu nhiên vào các dòng văn bản
    • site0-Hoạt động tệp cấp cao
  • Dữ liệu tồn tại
    • site1 - Sê -ri đối tượng Python
    • site2 - Đăng ký site1 Chức năng hỗ trợ
    • site4 - Sự kiên trì của đối tượng Python
    • site5 - Sê -ri đối tượng Python nội bộ
    • site6 - Giao diện đến cơ sở dữ liệu UNIX
    • site7-Giao diện DB-API 2.0 cho cơ sở dữ liệu SQLite
  • Nén dữ liệu và lưu trữ
    • site8 - Tương thích nén với GZIPgzip
    • site9 - Hỗ trợ cho các tệp GZIPgzip files
    • and0 - ​​Hỗ trợ nén BZIP2bzip2 compression
    • and1 - nén bằng thuật toán LZMA
    • and2 - Làm việc với kho lưu trữ zip
    • and3 - Đọc và ghi các tệp lưu trữ tar
  • Định dạng tệp
    • and4 - Đọc và ghi tệp CSV
    • and5 - Trình phân tích cú pháp tệp cấu hình
    • and6 - Xử lý tệp NetRC
    • and7 - Tạo và phân tích các tệp and8
  • Dịch vụ mật mã
    • and9 - băm an toàn và tiêu hóa tin nhắn
    • or0-Hashed-hash để xác thực tin nhắn
    • or1 - Tạo các số ngẫu nhiên an toàn để quản lý bí mật
  • Dịch vụ hệ điều hành chung
    • or2 - Giao diện hệ điều hành linh tinh
    • or3 - Các công cụ cốt lõi để làm việc với các luồng
    • or4 - Truy cập thời gian và chuyển đổi
    • or5-Trình phân tích cú pháp cho các tùy chọn dòng lệnh, đối số và lệnh phụ
    • or6-Trình phân tích cú pháp kiểu C cho các tùy chọn dòng lệnh
    • or7 - Cơ sở đăng nhập cho Python
    • or8 - Cấu hình ghi nhật ký
    • or9 - Trình xử lý đăng nhập
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      00 - Đầu vào mật khẩu di động
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      01-Xử lý thiết bị đầu cuối cho màn hình tế bào ký tự
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      02 - Tiện ích đầu vào văn bản cho các chương trình Curses
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      03 - Tiện ích cho các ký tự ASCII
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      04 - Phần mở rộng ngăn xếp bảng điều khiển cho những lời nguyền
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      05 - Truy cập vào nền tảng cơ bản Dữ liệu xác định dữ liệu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      06 - Biểu tượng hệ thống ERRNO tiêu chuẩn
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      07 - Thư viện chức năng nước ngoài cho Python
  • Thực thi đồng thời
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      08-Song song dựa trên chủ đề
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      09-Song song dựa trên quy trình
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      10 - Bộ nhớ được chia sẻ để truy cập trực tiếp qua các quy trình
    • Gói
      Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      11
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      12 - Khởi động các nhiệm vụ song song
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      13 - Quản lý quy trình phụ
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      14 - Lập lịch sự kiện
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      15 - Lớp xếp hàng được đồng bộ hóa
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      16 - Biến bối cảnh
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      17-API luồng cấp thấp
  • Giao tiếp kết nối và giao tiếp
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      18 - I/O không đồng bộ
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      19-Giao diện mạng cấp thấp
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      20 - Vòng bao TLS/SSL cho các đối tượng ổ cắm
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      21 - chờ hoàn thành I/O
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      22-Bộ ghép kênh I/O cấp cao
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      23 - Đặt trình xử lý cho các sự kiện không đồng bộ
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      24-Hỗ trợ tệp được ánh xạ bộ nhớ
  • Xử lý dữ liệu Internet
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      25 - Gói xử lý email và mime
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      26 - Bộ mã hóa và bộ giải mã JSON
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      27 - Thao tác hộp thư ở các định dạng khác nhau
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      28 - Tên tệp bản đồ thành các loại MIME
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      29 - Base16, Base32, Base64, Base85 Mã hóa dữ liệu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      30 - Mã hóa và giải mã các tệp BINHEX4
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      31 - Chuyển đổi giữa nhị phân và ASCII
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      32-Mã hóa và giải mã Dữ liệu được trích dẫn có thể in được
  • Công cụ xử lý đánh dấu có cấu trúc
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      33 - Hỗ trợ ngôn ngữ đánh dấu siêu văn bản
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      34 - Trình phân tích cú pháp HTML và XHTML đơn giản
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      35 - Định nghĩa của các thực thể chung HTML
    • Các mô -đun xử lý XML
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      36 - API phần tử XML
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      37 - API mô hình đối tượng tài liệu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      38 - Thực hiện DOM tối thiểu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      39 - Hỗ trợ xây dựng một phần cây Dom
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      40 - Hỗ trợ cho trình phân tích cú pháp SAX2
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      41 - Các lớp cơ sở cho người xử lý Sax
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      42 - Tiện ích sax
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      43 - Giao diện cho trình phân tích cú pháp XML
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      44 - Phân tích cú pháp XML nhanh bằng cách sử dụng nước ngoài
  • Giao thức Internet và hỗ trợ
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      45-Bộ điều khiển trình duyệt web tiện lợi
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      46 - Tiện ích WSGI và triển khai tham chiếu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      47 - Mô -đun xử lý URL
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      48 - Thư viện mở rộng để mở URLS
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      49 - Các lớp phản hồi được sử dụng bởi Urllib
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      50 - URL phân tích thành các thành phần
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      51 - Các lớp ngoại lệ được nâng lên bởi Urllib.Request
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      52 - trình phân tích cú pháp cho robot.txt
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      53 - Mô -đun HTTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      54 - Máy khách giao thức HTTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      55 - Máy khách giao thức FTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      56 - Máy khách giao thức POP3
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      57 - Máy khách giao thức IMAP4
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      58 - Máy khách giao thức SMTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      59 - Đối tượng UUID theo RFC 4122RFC 4122
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      60 - Khung cho máy chủ mạng
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      61 - Máy chủ HTTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      62 - Quản lý nhà nước HTTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      63 - Xử lý cookie cho máy khách HTTP
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      64 - Các mô -đun máy chủ và máy chủ XMLRPC
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      65-Truy cập máy khách XML-RPC
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      66-Máy chủ XML-RPC cơ bản
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      67 - Thư viện thao tác IPv4/IPv6
  • Dịch vụ đa phương tiện
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      68 - Đọc và ghi các tệp WAV
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      69 - Chuyển đổi giữa các hệ thống màu
  • Quốc tế hóa
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      70 - Dịch vụ quốc tế hóa đa ngôn ngữ
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      71 - Dịch vụ quốc tế hóa
  • Khung chương trình
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      72 - Đồ họa rùa
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      73-Hỗ trợ cho các phiên dịch viên lệnh theo định hướng dòng
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      74 - Phân tích từ vựng đơn giản
  • Giao diện người dùng đồ họa với TK
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      75 - Giao diện Python với TCL/TK
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      76 - Hộp thoại chọn màu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      77 - Vòng bao phông Tkinter
    • Hộp thoại Tkinter
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      78 - Lời nhắc tin nhắn Tkinter
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      79 - Tiện ích văn bản cuộn
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      80 - Hỗ trợ kéo và thả
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      81 - TK Widget theo chủ đề TK
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      82 - Tiện ích mở rộng cho TK
    • Nhàn rỗi
  • Công cụ phát triển
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      83 - Hỗ trợ cho các gợi ý loại
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      84 - Trình tạo tài liệu và hệ thống trợ giúp trực tuyến
    • Chế độ phát triển Python
    • Hiệu ứng của chế độ phát triển Python
    • Ví dụ về tài nguyên
    • Ví dụ về lỗi mô tả tệp xấu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      85 - Các ví dụ Python tương tác kiểm tra
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      86 - Khung kiểm tra đơn vị
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      87 - Thư viện đối tượng giả
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      87 - Bắt đầu
    • 2to3 - Bản dịch mã Python 2 đến 3 tự động
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      89 - Gói kiểm tra hồi quy cho Python
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      90 - Tiện ích cho bộ thử nghiệm Python
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      91 - Tiện ích cho các thử nghiệm ổ cắm
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      92 - Tiện ích cho các bài kiểm tra thực hiện Python
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      93 - Các công cụ hỗ trợ để kiểm tra tạo mã byte chính xác
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      94 - Tiện ích cho các bài kiểm tra luồng
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      95 - Tiện ích cho các bài kiểm tra hệ điều hành
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      96 - Tiện ích cho các bài kiểm tra nhập khẩu
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      97 - Tiện ích cho các bài kiểm tra cảnh báo
  • Gỡ lỗi và hồ sơ
    • Bảng sự kiện kiểm toán
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      98 - Khung trình gỡ lỗi
    • Modules/module.c
      Lib/test/test_.py
      Doc/library/.rst
      
      99 - Bỏ đi bộ ba Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      00 - Trình gỡ lỗi Python
    • Các hồ sơ Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      01 - Đo lường thời gian thực hiện của các đoạn mã nhỏ
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      02 - Thực thi câu lệnh Python theo dõi hoặc theo dõi
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      03 - Phân bổ bộ nhớ theo dõi
  • Bao bì và phân phối phần mềm
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      04 - Xây dựng và cài đặt các mô -đun Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      05 - Trình cài đặt bootstrapping
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      06
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      07 - Tạo ra môi trường ảo
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      08 - Quản lý tài liệu lưu trữ Zip Python có thể thực thi
  • Dịch vụ thời gian chạy Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      09-Các tham số và chức năng dành riêng cho hệ thống
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      10 - Cung cấp quyền truy cập vào thông tin cấu hình Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      11-Các đối tượng tích hợp
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      12-Môi trường mã cấp cao nhất
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      13 - Kiểm soát cảnh báo
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      14 - Các lớp dữ liệu
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      15-Tiện ích cho bối cảnh ____ ____ 216
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      17 - Các lớp cơ sở trừu tượng
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      18 - Trình xử lý thoát
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      19 - In hoặc lấy một dấu vết ngăn xếp
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      20 - Định nghĩa tuyên bố trong tương lai
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      21 - Giao diện thu gom rác
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      22 - Kiểm tra các đối tượng trực tiếp
    • site-Hook cấu hình cụ thể trang web
  • Thông dịch viên Python tùy chỉnh
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      24 - Các lớp cơ sở phiên dịch
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      25 - Biên dịch mã Python
  • Nhập các mô -đun
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      26 - Nhập các mô -đun từ Lưu trữ Zip
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      27 - Tiện ích mở rộng gói
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      28 - Tìm các mô -đun được sử dụng bởi tập lệnh
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      29 - Định vị và thực hiện các mô -đun Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      30 - Việc thực hiện
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      31
    • Sử dụng
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      32
  • Dịch vụ ngôn ngữ Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      33 - Cây pháp trừu tượng
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      34 - Truy cập vào bảng biểu tượng trình biên dịch
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      35 - Hằng số được sử dụng với cây phân tích Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      36 - Kiểm tra từ khóa Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      37 - Tokenizer cho nguồn Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      38 - Phát hiện vết lõm mơ hồ
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      39 - Hỗ trợ trình duyệt mô -đun Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      40 - Biên dịch tệp nguồn Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      41-Thư viện Python Byte-Compile
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      42 - Disassembler cho mã byte Python
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      43 - Công cụ cho các nhà phát triển Pickle
  • MS Windows Dịch vụ cụ thể
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      44 - Các thói quen hữu ích từ thời gian chạy MS VC ++
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      45 - Truy cập Windows Registry
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      46-Giao diện phát âm thanh cho Windows
  • Dịch vụ cụ thể của Unix
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      47 - Các cuộc gọi hệ thống POSIX phổ biến nhất
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      48 - Cơ sở dữ liệu mật khẩu
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      49 - Cơ sở dữ liệu nhóm
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      50 - Điều khiển TTY kiểu Posix
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      51 - Chức năng điều khiển thiết bị đầu cuối
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      52-Tiện ích đầu cuối giả
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      53 - Cuộc gọi hệ thống
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      53 và
      Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      55
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      56 - Thông tin sử dụng tài nguyên
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      57 - Các thói quen thư viện syslog UNIX
  • Các mô -đun thay thế
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      58 - Đọc và ghi các tệp AIFF và AIFC
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      59 - Trình xử lý ứng dụng/lệnh ổ cắm không đồng bộ
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      60 - Trình xử lý ổ cắm không đồng bộ
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      61 - Thao tác dữ liệu âm thanh thô
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      62 - Hỗ trợ giao diện cổng chung
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      63 - Trình quản lý theo dõi cho các tập lệnh CGI
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      64 - Đọc dữ liệu IFF Chunked
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      65 - Chức năng kiểm tra mật khẩu Unix
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      66 - Xác định loại hình ảnh
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      67 - Truy cập vào nhập khẩu nội bộimport internals
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      68 - Xử lý tệp MailCap
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      69 - Đọc và ghi các tệp trình cài đặt Microsoft
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      70 - Giao diện với Mặt trời NIS (trang vàng)
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      71 - Máy khách giao thức NNTP
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      72 - Trình phân tích cú pháp cho các tùy chọn dòng lệnh
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      73-Truy cập vào các thiết bị âm thanh tương thích OSS
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      74 - Giao diện với các đường ống Shell
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      75 - Máy chủ SMTP
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      76 - Xác định loại tệp âm thanh
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      77 - Cơ sở dữ liệu mật khẩu bóng tối
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      78 - Đọc và viết các tệp Sun AU
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      79 - Máy khách Telnet
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      80 - mã hóa và giải mã các tệp uuencode
    • Objects/object.c
      Lib/test/test_.py
      Doc/library/stdtypes.rst
      
      81 - mã hóa và giải mã dữ liệu XDR
  • Cân nhắc về Bảo mật

Làm cách nào để xem mã nguồn của thư viện Python?

Chúng tôi sử dụng phương thức GetSource () của mô -đun kiểm tra để lấy mã nguồn của hàm.Trả về văn bản của mã nguồn cho một đối tượng.Đối số có thể là một mô -đun, lớp, phương thức, chức năng, tracback, khung hoặc đối tượng mã.Mã nguồn được trả về dưới dạng một chuỗi.use the getsource() method of inspect module to get the source code of the function. Returns the text of the source code for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string.

Thư viện Python nằm ở đâu?

Python được cài đặt cục bộ và tất cả các gói sẽ được cài đặt theo một thư mục tương tự ~/.cục bộ/ bin/ cho một hệ thống dựa trên UNIX hoặc \ users \ username \ appdata \ local \ Programs \ cho Windows.~/. local/bin/ for a Unix-based system, or \Users\Username\AppData\Local\Programs\ for Windows.

Nguồn Python ở đâu?

www.python.org..