### 导航
- [索引](../genindex.xhtml "总目录")
- [模块](../py-modindex.xhtml "Python 模块索引") |
- [下一页](urllib.request.xhtml "urllib.request --- 用于打开 URL 的可扩展库") |
- [上一页](wsgiref.xhtml "wsgiref --- WSGI Utilities and Reference Implementation") |
- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)
- [Python](https://www.python.org/) »
- zh\_CN 3.7.3 [文档](../index.xhtml) »
- [Python 标准库](index.xhtml) »
- [互联网协议和支持](internet.xhtml) »
- $('.inline-search').show(0); |
# [`urllib`](#module-urllib "urllib") --- URL 处理模块
**源代码:** [Lib/urllib/](https://github.com/python/cpython/tree/3.7/Lib/urllib/) \[https://github.com/python/cpython/tree/3.7/Lib/urllib/\]
- - - - - -
`urllib` 是一个收集了多个使用URL的模块的软件包:
- [`urllib.request`](urllib.request.xhtml#module-urllib.request "urllib.request: Extensible library for opening URLs.") 打开和阅读 URLs
- [`urllib.error`](urllib.error.xhtml#module-urllib.error "urllib.error: Exception classes raised by urllib.request.") 包含 [`urllib.request`](urllib.request.xhtml#module-urllib.request "urllib.request: Extensible library for opening URLs.") 抛出的异常
- [`urllib.parse`](urllib.parse.xhtml#module-urllib.parse "urllib.parse: Parse URLs into or assemble them from components.") 用于处理 URL
- [`urllib.robotparser`](urllib.robotparser.xhtml#module-urllib.robotparser "urllib.robotparser: Load a robots.txt file and answer questions about fetchability of other URLs.") 用于解析 `robots.txt` 文件
### 导航
- [索引](../genindex.xhtml "总目录")
- [模块](../py-modindex.xhtml "Python 模块索引") |
- [下一页](urllib.request.xhtml "urllib.request --- 用于打开 URL 的可扩展库") |
- [上一页](wsgiref.xhtml "wsgiref --- WSGI Utilities and Reference Implementation") |
- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)
- [Python](https://www.python.org/) »
- zh\_CN 3.7.3 [文档](../index.xhtml) »
- [Python 标准库](index.xhtml) »
- [互联网协议和支持](internet.xhtml) »
- $('.inline-search').show(0); |
© [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/)
最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)?
使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。