try:
import urllib.request as urllib2
except ImportError:
import urllib2 response = urllib2.urlopen("http://www.baidu.com")
print(response.getcode())
response = urllib2.urlopen('http://www.cnblogs.com/txw1958/archive/2012/03/12/2392067.html')
html = response.read()
print(html.decode('utf-8')) //16进制转utf-8

最新文章

  1. [转]程序员趣味读物:谈谈Unicode编码
  2. GNS3 IOU 配置
  3. 利用 druid 解析器解析SQL
  4. Linux 下源码包安装MariaDB
  5. java开发微信公众平台备忘
  6. jquery动态样式操作
  7. gcc 安装
  8. mysql sql limit where having order
  9. tomcat https jks 沃通免费证书安装 解决方案
  10. Unity带有网络功能——创建服务,并连接到一个特定的服务
  11. Zabbix实战-简易教程--技巧(本地化)
  12. AFNetworking 源码解读
  13. Linux实战
  14. YUM仓库安装LAMP与LNMP
  15. Spring杂记BeanFactory之getBean方法
  16. Codeforces Round #361 (Div. 2) E. Mike and Geometry Problem 离散化 排列组合
  17. Jquery 监听浏览器前进后退
  18. selenium自动化之显式等待和EC(expected_conditions)模块
  19. Git学习手记
  20. html:<link> 标签中的 media 属性

热门文章

  1. HH的项链题解(离线思想+链表+树状数组)
  2. k8s的secret基本概念及案例
  3. 小技巧之padding-bottom实现等比例图片缩放
  4. 使用natapp本地映射外网服务
  5. String使用方法详解
  6. Diycode开源项目 LoginActivity分析
  7. day19 Dgango进阶 路由系统及 ORM 详解
  8. How to check if Visual Studio 2005 SP1 is installed
  9. 介绍 Active Directory 域服务 (AD DS) 虚拟化
  10. Careercup - Microsoft面试题 - 5672369481842688