msx6666 发表于 2021-2-1 18:25:51

鱼爹们紧急求助哇

import urllib.request
url = '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'
>>>

msx6666 发表于 2021-2-1 18:28:25

{:10_266:}{:10_266:}

叙白 发表于 2021-2-2 11:49:43

你单词拼错了,是build,你写成了bulid

小甲鱼de粉丝 发表于 2021-2-2 12:20:39

Bulid 该build

msx6666 发表于 2021-2-22 10:34:10

感谢各位鱼爹!!!!
页: [1]
查看完整版本: 鱼爹们紧急求助哇