http_01.py 172 字节
Newer Older
1 2 3 4 5 6
# 使用urllib发送GET请求的示例代码如下:
import urllib.request

response = urllib.request.urlopen('https://www.baidu.com/')
html = response.read()
print(html)