# 使用urllib发送GET请求的示例代码如下: import urllib.request response = urllib.request.urlopen('https://www.baidu.com/') html = response.read() print(html)