Chinaunix首页 | 论坛 | 博客
  • 博客访问: 216212
  • 博文数量: 39
  • 博客积分: 945
  • 博客等级: 准尉
  • 技术积分: 532
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-04 17:25
文章分类

全部博文(39)

文章存档

2012年(39)

我的朋友

分类: Python/Ruby

2012-05-23 16:44:31


写下来笔记,以免今后忘记了。

点击(此处)折叠或打开

  1. In [33]: from urllib import  urlopen
  2. In [34]: doc = urlopen("")

  3. In [35]: print ''.join(doc.info().getheader('Content-Type').strip().split()[1:])
  4. charset=Big5


阅读(676) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~