现在的位置: 首页 > 综合 > 正文

httplib python3

2019年08月02日 ⁄ 综合 ⁄ 共 674字 ⁄ 字号 评论关闭

3还改动了不少模块啊

In Python 3, several related HTTP modules have been combined into a single package, http.

import httplibimport http.client
import Cookieimport http.cookies
import cookielibimport http.cookiejar
import BaseHTTPServer
import SimpleHTTPServer
import CGIHttpServerimport http.serverThe http.client module implements a low-level library that can request HTTP resources and interpret HTTP responses.The http.cookies module provides a Pythonic interface to browser cookies that are sent in a Set-Cookie:HTTP header.The http.cookiejar module manipulates the actual files on disk that popular web browsers use to store cookies.The http.server module provides a basic HTTP server.

抱歉!评论已关闭.