Python 为什么不能获取urllib2.urlopen?

Python 为什么不能获取urllib2.urlopen?,python,connection,urlopen,Python,Connection,Urlopen,为什么我不能开始工作 import urllib2 DOI = '10.1016/j.trf.2005.10.001' link1 = "http://dx.doi.org/" + DOI print link1 arnumber = urllib2.urlopen(link1) print arnumber 我收到这个错误: URL错误: 但是我的连接是真的URLError:我使用了:import requests webpage=requests.get“print webpage:

为什么我不能开始工作

import urllib2

DOI = '10.1016/j.trf.2005.10.001'
link1 = "http://dx.doi.org/" + DOI  
print link1
arnumber = urllib2.urlopen(link1)
print arnumber
我收到这个错误:

URL错误:


但是我的连接是真的

URLError:我使用了:import requests webpage=requests.get“print webpage:but receive