python 模块

# 模块
# python常用的标准库
# builtins 内建函数默认加载
# os 操作系统接口
# sys Python自身的运行环境
# functools 常用的工具
# json 编码和解码Json对象
# logging 记录日志,调试
# multiprocessing 多进程
# threading 多线程
# copy 拷贝
# time 时间
# datetime 日期和时间
# calendar 日历
# hashlib 加密算法
# random 生成随机数
# re 字符串正则匹配
# socket 标准的BSD Sockets API
# shutil 文件和目录管理
# glob 基于文件通配符搜索

# hashlib 哈希算法
import hashlib
m = hashlib.md5() #创建hash对象,md5:
print(m)

m.update(b"itcast")
print(m.hexdigest)

# 用于注册,登录
# import hashlib
import datetime

# 常见的扩展库

# python -m http.server 8888

原文地址:https://www.cnblogs.com/sklhtml/p/9467668.html