Skip to content

Commit 804cfc6

Browse files
committed
update standard modules
1 parent 702505b commit 804cfc6

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

Standard-Modules/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1-
# 常用标准模块
1+
# 标准模块
2+
3+
前面我们介绍了 os 模块和 re 模块,本章再介绍 Python 常用的一些标准模块:
4+
5+
- [argparse](./argparse.md)
6+
- [base64](./base64.md)
7+
- [collections](./collections.md)
8+
- [datetime](./datetime.md)
9+
- [hashlib](./hashlib.md)
10+
- [hmac](./hmac.md)
11+
12+
其中:
13+
14+
- argparse 是用于创建命令行的库;
15+
- base64 是用于 base64 编码和解码的库;
16+
- collections 模块提供了 5 个高性能的数据类型,如 `Counter``OrderedDict` 等;
17+
- datetime 是用于处理日期时间的模块;
18+
- hashlib 模块提供了常见的摘要算法,比如 MD5,SHA1 等;
19+
- hmac 模块提供了 HMAC 哈希算法;
220

0 commit comments

Comments
 (0)