# -*- coding: cp936 -*-
#python 27
#xiaodeng
#python 之html的headers提取操作
#


import urllib,urllib2

html=urllib.urlopen
#print html.headers
html=html.headers
print html
print '--'*25
for item,v in html.items():
    print item,':',v

 

无语言基础,自学python所做的各种笔记,欢迎大牛指点.