需要导入requests包 import requests 使用requests的get方法进行HTTP请求(使用rq变量接收该请求) rq = requests.get('目标网址') 对HTTP请求的操作