多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](webbrowser.xhtml "webbrowser --- 方便的Web浏览器控制器") | - [上一页](pyexpat.xhtml "xml.parsers.expat --- Fast XML parsing using Expat") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | # 互联网协议和支持 本章介绍的模块实现了互联网协议并支持相关技术。 它们都是用 Python 实现的。 这些模块中的大多数都需要存在依赖于系统的模块 [`socket`](socket.xhtml#module-socket "socket: Low-level networking interface.") ,目前大多数流行平台都支持它。 这是一个概述: - [`webbrowser` --- 方便的Web浏览器控制器](webbrowser.xhtml) - [浏览器控制器对象](webbrowser.xhtml#browser-controller-objects) - [`cgi` --- Common Gateway Interface support](cgi.xhtml) - [概述](cgi.xhtml#introduction) - [Using the cgi module](cgi.xhtml#using-the-cgi-module) - [Higher Level Interface](cgi.xhtml#higher-level-interface) - [函数](cgi.xhtml#functions) - [Caring about security](cgi.xhtml#caring-about-security) - [Installing your CGI script on a Unix system](cgi.xhtml#installing-your-cgi-script-on-a-unix-system) - [Testing your CGI script](cgi.xhtml#testing-your-cgi-script) - [Debugging CGI scripts](cgi.xhtml#debugging-cgi-scripts) - [Common problems and solutions](cgi.xhtml#common-problems-and-solutions) - [`cgitb` --- Traceback manager for CGI scripts](cgitb.xhtml) - [`wsgiref` --- WSGI Utilities and Reference Implementation](wsgiref.xhtml) - [`wsgiref.util` -- WSGI environment utilities](wsgiref.xhtml#module-wsgiref.util) - [`wsgiref.headers` -- WSGI response header tools](wsgiref.xhtml#module-wsgiref.headers) - [`wsgiref.simple_server` -- a simple WSGI HTTP server](wsgiref.xhtml#module-wsgiref.simple_server) - [`wsgiref.validate` --- WSGI conformance checker](wsgiref.xhtml#module-wsgiref.validate) - [`wsgiref.handlers` -- server/gateway base classes](wsgiref.xhtml#module-wsgiref.handlers) - [示例](wsgiref.xhtml#examples) - [`urllib` --- URL 处理模块](urllib.xhtml) - [`urllib.request` --- 用于打开 URL 的可扩展库](urllib.request.xhtml) - [Request Objects](urllib.request.xhtml#request-objects) - [OpenerDirector Objects](urllib.request.xhtml#openerdirector-objects) - [BaseHandler Objects](urllib.request.xhtml#basehandler-objects) - [HTTPRedirectHandler Objects](urllib.request.xhtml#httpredirecthandler-objects) - [HTTPCookieProcessor Objects](urllib.request.xhtml#httpcookieprocessor-objects) - [ProxyHandler Objects](urllib.request.xhtml#proxyhandler-objects) - [HTTPPasswordMgr Objects](urllib.request.xhtml#httppasswordmgr-objects) - [HTTPPasswordMgrWithPriorAuth Objects](urllib.request.xhtml#httppasswordmgrwithpriorauth-objects) - [AbstractBasicAuthHandler Objects](urllib.request.xhtml#abstractbasicauthhandler-objects) - [HTTPBasicAuthHandler Objects](urllib.request.xhtml#httpbasicauthhandler-objects) - [ProxyBasicAuthHandler Objects](urllib.request.xhtml#proxybasicauthhandler-objects) - [AbstractDigestAuthHandler Objects](urllib.request.xhtml#abstractdigestauthhandler-objects) - [HTTPDigestAuthHandler Objects](urllib.request.xhtml#httpdigestauthhandler-objects) - [ProxyDigestAuthHandler Objects](urllib.request.xhtml#proxydigestauthhandler-objects) - [HTTPHandler Objects](urllib.request.xhtml#httphandler-objects) - [HTTPSHandler Objects](urllib.request.xhtml#httpshandler-objects) - [FileHandler Objects](urllib.request.xhtml#filehandler-objects) - [DataHandler Objects](urllib.request.xhtml#datahandler-objects) - [FTPHandler Objects](urllib.request.xhtml#ftphandler-objects) - [CacheFTPHandler Objects](urllib.request.xhtml#cacheftphandler-objects) - [UnknownHandler Objects](urllib.request.xhtml#unknownhandler-objects) - [HTTPErrorProcessor Objects](urllib.request.xhtml#httperrorprocessor-objects) - [示例](urllib.request.xhtml#examples) - [Legacy interface](urllib.request.xhtml#legacy-interface) - [`urllib.request` Restrictions](urllib.request.xhtml#urllib-request-restrictions) - [`urllib.response` --- Response classes used by urllib](urllib.request.xhtml#module-urllib.response) - [`urllib.parse` --- Parse URLs into components](urllib.parse.xhtml) - [URL Parsing](urllib.parse.xhtml#url-parsing) - [Parsing ASCII Encoded Bytes](urllib.parse.xhtml#parsing-ascii-encoded-bytes) - [Structured Parse Results](urllib.parse.xhtml#structured-parse-results) - [URL Quoting](urllib.parse.xhtml#url-quoting) - [`urllib.error` --- Exception classes raised by urllib.request](urllib.error.xhtml) - [`urllib.robotparser` --- Parser for robots.txt](urllib.robotparser.xhtml) - [`http` --- HTTP 模块](http.xhtml) - [HTTP 状态码](http.xhtml#http-status-codes) - [http.client --- HTTP协议客户端](http.client.xhtml) - [HTTPConnection Objects](http.client.xhtml#httpconnection-objects) - [HTTPResponse Objects](http.client.xhtml#httpresponse-objects) - [示例](http.client.xhtml#examples) - [HTTPMessage Objects](http.client.xhtml#httpmessage-objects) - [`ftplib` --- FTP protocol client](ftplib.xhtml) - [FTP Objects](ftplib.xhtml#ftp-objects) - [FTP\_TLS Objects](ftplib.xhtml#ftp-tls-objects) - [`poplib` --- POP3 protocol client](poplib.xhtml) - [POP3 Objects](poplib.xhtml#pop3-objects) - [POP3 Example](poplib.xhtml#pop3-example) - [`imaplib` --- IMAP4 protocol client](imaplib.xhtml) - [IMAP4 Objects](imaplib.xhtml#imap4-objects) - [IMAP4 Example](imaplib.xhtml#imap4-example) - [`nntplib` --- NNTP protocol client](nntplib.xhtml) - [NNTP Objects](nntplib.xhtml#nntp-objects) - [Attributes](nntplib.xhtml#attributes) - [方法](nntplib.xhtml#methods) - [Utility functions](nntplib.xhtml#utility-functions) - [`smtplib` ---SMTP协议客户端](smtplib.xhtml) - [SMTP Objects](smtplib.xhtml#smtp-objects) - [SMTP Example](smtplib.xhtml#smtp-example) - [`smtpd` --- SMTP Server](smtpd.xhtml) - [SMTPServer Objects](smtpd.xhtml#smtpserver-objects) - [DebuggingServer Objects](smtpd.xhtml#debuggingserver-objects) - [PureProxy Objects](smtpd.xhtml#pureproxy-objects) - [MailmanProxy Objects](smtpd.xhtml#mailmanproxy-objects) - [SMTPChannel Objects](smtpd.xhtml#smtpchannel-objects) - [`telnetlib` --- Telnet client](telnetlib.xhtml) - [Telnet Objects](telnetlib.xhtml#telnet-objects) - [Telnet Example](telnetlib.xhtml#telnet-example) - [`uuid` --- UUID objects according to **RFC 4122**](uuid.xhtml) - [示例](uuid.xhtml#example) - [`socketserver` --- A framework for network servers](socketserver.xhtml) - [Server Creation Notes](socketserver.xhtml#server-creation-notes) - [Server Objects](socketserver.xhtml#server-objects) - [Request Handler Objects](socketserver.xhtml#request-handler-objects) - [示例](socketserver.xhtml#examples) - [`socketserver.TCPServer` Example](socketserver.xhtml#socketserver-tcpserver-example) - [`socketserver.UDPServer` Example](socketserver.xhtml#socketserver-udpserver-example) - [Asynchronous Mixins](socketserver.xhtml#asynchronous-mixins) - [`http.server` --- HTTP 服务器](http.server.xhtml) - [`http.cookies` --- HTTP state management](http.cookies.xhtml) - [Cookie Objects](http.cookies.xhtml#cookie-objects) - [Morsel Objects](http.cookies.xhtml#morsel-objects) - [示例](http.cookies.xhtml#example) - [`http.cookiejar` --- Cookie handling for HTTP clients](http.cookiejar.xhtml) - [CookieJar and FileCookieJar Objects](http.cookiejar.xhtml#cookiejar-and-filecookiejar-objects) - [FileCookieJar subclasses and co-operation with web browsers](http.cookiejar.xhtml#filecookiejar-subclasses-and-co-operation-with-web-browsers) - [CookiePolicy Objects](http.cookiejar.xhtml#cookiepolicy-objects) - [DefaultCookiePolicy Objects](http.cookiejar.xhtml#defaultcookiepolicy-objects) - [Cookie Objects](http.cookiejar.xhtml#cookie-objects) - [示例](http.cookiejar.xhtml#examples) - [`xmlrpc` --- XMLRPC 服务端与客户端模块](xmlrpc.xhtml) - [`xmlrpc.client` --- XML-RPC client access](xmlrpc.client.xhtml) - [ServerProxy Objects](xmlrpc.client.xhtml#serverproxy-objects) - [DateTime 对象](xmlrpc.client.xhtml#datetime-objects) - [Binary Objects](xmlrpc.client.xhtml#binary-objects) - [Fault Objects](xmlrpc.client.xhtml#fault-objects) - [ProtocolError Objects](xmlrpc.client.xhtml#protocolerror-objects) - [MultiCall Objects](xmlrpc.client.xhtml#multicall-objects) - [Convenience Functions](xmlrpc.client.xhtml#convenience-functions) - [Example of Client Usage](xmlrpc.client.xhtml#example-of-client-usage) - [Example of Client and Server Usage](xmlrpc.client.xhtml#example-of-client-and-server-usage) - [`xmlrpc.server` --- Basic XML-RPC servers](xmlrpc.server.xhtml) - [SimpleXMLRPCServer Objects](xmlrpc.server.xhtml#simplexmlrpcserver-objects) - [SimpleXMLRPCServer Example](xmlrpc.server.xhtml#simplexmlrpcserver-example) - [CGIXMLRPCRequestHandler](xmlrpc.server.xhtml#cgixmlrpcrequesthandler) - [Documenting XMLRPC server](xmlrpc.server.xhtml#documenting-xmlrpc-server) - [DocXMLRPCServer Objects](xmlrpc.server.xhtml#docxmlrpcserver-objects) - [DocCGIXMLRPCRequestHandler](xmlrpc.server.xhtml#doccgixmlrpcrequesthandler) - [`ipaddress` --- IPv4/IPv6 manipulation library](ipaddress.xhtml) - [Convenience factory functions](ipaddress.xhtml#convenience-factory-functions) - [IP Addresses](ipaddress.xhtml#ip-addresses) - [Address objects](ipaddress.xhtml#address-objects) - [Conversion to Strings and Integers](ipaddress.xhtml#conversion-to-strings-and-integers) - [运算符](ipaddress.xhtml#operators) - [Comparison operators](ipaddress.xhtml#comparison-operators) - [Arithmetic operators](ipaddress.xhtml#arithmetic-operators) - [IP Network definitions](ipaddress.xhtml#ip-network-definitions) - [Prefix, net mask and host mask](ipaddress.xhtml#prefix-net-mask-and-host-mask) - [Network objects](ipaddress.xhtml#network-objects) - [运算符](ipaddress.xhtml#id1) - [Logical operators](ipaddress.xhtml#logical-operators) - [Iteration](ipaddress.xhtml#iteration) - [Networks as containers of addresses](ipaddress.xhtml#networks-as-containers-of-addresses) - [Interface objects](ipaddress.xhtml#interface-objects) - [运算符](ipaddress.xhtml#id2) - [Logical operators](ipaddress.xhtml#id3) - [Other Module Level Functions](ipaddress.xhtml#other-module-level-functions) - [Custom Exceptions](ipaddress.xhtml#custom-exceptions) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](webbrowser.xhtml "webbrowser --- 方便的Web浏览器控制器") | - [上一页](pyexpat.xhtml "xml.parsers.expat --- Fast XML parsing using Expat") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.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 创建。