Python 3.3 Tutorial Notes - 8:Standard Libraries - Briefly

本文深入探讨了Python编程中常用的技术模块,包括文件操作、命令行参数、字符串匹配、数学运算、互联网应用、日期时间处理、数据压缩、性能测量、远程过程调用、电子邮件、XML处理、本地数据库、国际化、输出格式化、模板使用、二进制数据记录布局、多线程、日志记录、弱引用、列表相关操作、十进制浮点数运算等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 *
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值