摘要: 在Python中有两种注释,一种是普通注释,另一种是文档注释。普通注释是使用#开头1 print('output something') # here is comment而Python中多行注释也是使用#1 # comment 12 # comment 23 # comment 3而文档注释则是使... 阅读全文
posted @ 2014-09-28 01:42 h82258652 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 除了 Http 模块可以模拟 Http 请求外,使用 Urllib 模块也是可以模拟 Http 请求的,只不过功能相对弱一点。1 import urllib.request2 3 opener = urllib.request.urlopen("http://www.baidu.com")4 byt... 阅读全文
posted @ 2014-09-28 00:06 h82258652 阅读(188) 评论(0) 推荐(0) 编辑