当我使用下面的代码时,它返回以下错误:
import urllib.request
print(urllib.request.urlopen(input(), proxies={
"http": "37.26.86.206",
"https": "37.26.86.206"
}))返回
Traceback (most recent call last):
File "[path]", line 2, in <module>
print(urllib.request.urlopen(input(), proxies={
TypeError: urlopen() got an unexpected keyword argument 'proxies'然而,这在multiple answers here中使用。是这个方法已经过时了,还是我的代码中有缺陷?注意:所有代码都包含在这里。
发布于 2021-08-18 22:09:53
原来它在Python3.5中被删除了谢谢大家的帮助!
https://stackoverflow.com/questions/68838412
复制相似问题