嗨,我一直在尝试在raspberry pi上执行下面的python代码,但是遇到了一个在我的PC上不存在的错误
import urllib2
response = urllib2.urlopen('http://pythonforbeginners.com/')
print response.info()
html = response.read()
# do something
response.close()
错误如下,但我不明白这里出了什么问题,有人能解释一下发生了什么吗?我已经在pi中安装了urllib2:
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐