|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import urllib.request
url = 'http://www.whatismyip.com.tw'
proxy_support = urllib.request.ProxyHandler({'http':'119.6.144.73:81'})
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)
Traceback (most recent call last):
File "D:/Python3.3.2/python 练习/查询我的IP.py", line 4, in <module>
opener = urllib.request.bulid_opener(proxy_support)
AttributeError: 'module' object has no attribute 'bulid_opener'
请问请该怎么改。。。。。。这跟小甲鱼写的是一样的呀。。。
|
|