摘要: 正则表达式 在线正则表达式测试工具:http://tool.oschina.net/regex/ 1.常见匹配模式 模式描述 \w 匹配字母数字及下划线 \W 匹配非字母数字下划线 \s 匹配任意空白字符,等价于 [\t\n\r\f]. \S 匹配任意非空字符 \d 匹配任意数字,等价于 [0-9] 阅读全文
posted @ 2018-07-22 17:25 WY~记录 阅读(161) 评论(0) 推荐(0)
摘要: [TOC] request库 官方文档: 安装:pip install requests 1.七个主要方法 "返回目录" 1. requests.Request() 构造一个请求,支撑以下各方法的基础方法 2. requests.get() 获取HTML网页的主要方法,对应于HTTP的GET 3. 阅读全文
posted @ 2018-07-22 14:59 WY~记录 阅读(231) 评论(0) 推荐(0)
摘要: ``` # 信息性状态码 100: ('continue',), 101: ('switching_protocols',), 102: ('processing',), 103: ('checkpoint',), 122: ('uri_too_long', 'request_uri_too_long'), # 成功状态码 200: ('ok', 'okay', 'all_ok', 'all_o... 阅读全文
posted @ 2018-07-22 10:42 WY~记录 阅读(197) 评论(0) 推荐(0)