# `urllib` --- URL 处理模块

源代码: Lib/urllib/

`urllib` 是一个收集了多个涉及 URL 的模块的包：

- `urllib.request` 打开和读取 URL

- `urllib.error` 包含 `urllib.request` 抛出的异常

- `urllib.parse` 用于解析 URL

- `urllib.robotparser` 用于解析 `robots.txt` 文件

© 版权所有 2001-2024, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.
The Python Software Foundation is a non-profit corporation. Please donate.
最后更新于 Sep 25, 2024 (09:07 UTC). Found a bug?
由 Sphinx 8.0.2创建。