出現(xiàn)中文代碼,用的微軟的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())
舉報(bào)
2017-08-01
中文代碼是什么意思,亂碼?