这几行代码哪里错了
import requests import re url = 'url' qinqiu = requests.get(url) qinqiu.encoding = qinqiu.apparent_encoding qinqiudy = qinqiu.text nigo = re.compile('<option value="(.*?)" selected="">') goy = re.findall (nigo.qinqiudy) print(goy)
这是报错 goy = re.findall(nigo.qinqiudy) AttributeError: 're.Pattern' object has no attribute 'qinqiudy'