使用urllib.request.urlopen()与urllib.request.Request() 获得响应 import urllib.request r = urllib.request.urlopen('https://gzdaily.dayoo.com/pc/html/2020-08/04/content_132879_713872.htm') html = r.read().decode('utf-8') print