查天气(2)
# -*- coding: utf-8 -*- import urllib2 web = urllib2.urlopen(‘http://www.baidu.com‘) content = web.read() print content
时间: 2024-10-20 14:45:37
# -*- coding: utf-8 -*- import urllib2 web = urllib2.urlopen(‘http://www.baidu.com‘) content = web.read() print content