urllib 模块 urllib模块提供了一系列用于操作URL的功能。官方文档地址博客地址urllib.request 打开、读取URLs urllib.error containing the exceptions raised by urllib.request urllib.parse for parsing URLs urllib.robotparser for parsing robots.txt files urllib.request 子模块 打开、读取URLs官方文档地址博客地址 os 模块 利用os 模块可以使用操作系统的相关功能。官方文档地址博客地址 os.path 子模块 os.path 子模块提供了与路径相关的操作功能官方文档地址博客地址 gzip 模块 gzip 模块提供了一个简单的接口压缩和解压文件。官方文档地址博客地址类GzipFile , 函数 open(), compress(), decompress() datetime https://www.cnblogs.com/cindy-cindy/p/6720196.html