Python 3.3 Tutorial Notes - 8:Standard Libraries - Briefly

来源:互联网 发布:淘宝客服数据在哪看 编辑:程序博客网 时间:2024/06/03 04:34
1. OS
     1.1 import os
     1.2 import shutil
2. File wildcards
     2.1 import glob
3. Command line arguments
     3.1 import sys
     3.2 sys.stderr and sys.exit() are also useful
4. String Pattern Matching
     4.1 import re
5. Mathematics
     5.1 import math
     5.2 import random
6. Internet
     6.1 import urllib.request
     6.2 import smtplib
     6.3 import poplib
7. Date & Time
     7.1 from datetime import date
     7.2 import time
8. Data Compression
     8.1 import zlib
9. Performance Measurement
     9.1 from timeit import Timer
10. QA
     10.1 import doctest
     10.2 import unittest
11. RPC
     11.1 xmlrpc.client
     11.2 xmlrpc.server
12. Email
     12.1 import email
13. XML
     13.1 xml.dom
     13.2 xml.sax
14. Local database
     14.1 import csv
15. Internationalization
     15.1 import gettext
     15.2 import locale
     15.3 import codecs
16. Output Formating
     16.1 import reprlib
     16.2 import pprint
     16.3 import textwrap
     16.4 import locale
17. Templating
     17.1 from string import Template
18. Binary Data Record Layout
     18.1 import struct
19. Multi-threading
     19.1 import threading
20. Logging
     20.1 import logging
21. Weak Reference
     21.1 import weekref
          21.1.1 The weakref module provides tools for tracking objects without creating a reference. When the object is no longer needed, it is automatically removed from a weakref table and a callback is  triggered for weakref objects. Typical applications include caching objects that are expensive to create
22. List Related
     22.1 from array import array
     22.2 from collections import deque
     22.3 import bisect
     22.4 from heapq import heapify, heappop, heappush
23. Decimal Floating Point Arithmetic
     23.1 from decimal import *
0 0
原创粉丝点击