出现中文代码,用的微软的VS2015
#coding=utf-8
import urllib2
url = "http://www.baidu.com"
print '第一种方法'
response1 = urllib2.urlopen(url)
print response1.getcode()
print len(response1.read())
#coding=utf-8
import urllib2
url = "http://www.baidu.com"
print '第一种方法'
response1 = urllib2.urlopen(url)
print response1.getcode()
print len(response1.read())
2017-08-01
举报