鱼爹们紧急求助哇
import urllib.requesturl = 'https://www.whatismyip.com/'
proxy_support = urllib.request.ProxyHandler({'http':'112.111.77.90:9999'})
opener = urllib.request.bulid_opener(proxy_support)
urllib.request.install_opener(opener)
response = urllib.request.urlopen(url)
html = response.read().decode('utf-8')
print(html)
为什么会在opener那里报错呀鱼油们!
报错内容如下:
Traceback (most recent call last):
File "C:/Users/机械师/Desktop/示例.py", line 5, in <module>
opener = urllib.request.bulid_opener(proxy_support)
AttributeError: module 'urllib.request' has no attribute 'bulid_opener'
>>> {:10_266:}{:10_266:} 你单词拼错了,是build,你写成了bulid Bulid 该build 感谢各位鱼爹!!!!
页:
[1]