标签:
#!/usr/bin/env python2
#-*- coding: utf-8 -*-
import urllib
url = "http://www.baidu.com"
def getHtml(url):
page = urllib.urlopen(url)
html = page.read()
print html
if __name__ == "__main__":
getHtml(url)
标签:
原文地址:http://www.cnblogs.com/banwhui/p/4599997.html