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

Python:import urllib2报错解决方案

python2和3有些不一样:

python2:输出为print 'hello world'

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

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

原文地址:https://www.cnblogs.com/lizm166/p/8094763.html