Python3.x:import urllib2报错解决方案

Python:import urllib2报错解决方案

python2和3有些不一样:

python2:输出为print 'hello world'

python3:输出为print('hello world')

print在3里是函数,并且用urllib.request代替了urllib2;

posted @ 2017-12-23 23:05  整合侠  阅读(1661)  评论(0编辑  收藏  举报