摘要: 1、re.match re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()返回none。 re.match(pattern,string,flags=0) 最常规的匹配 import re content ='hello 123 4567 World_T 阅读全文
posted @ 2017-11-05 22:05 幽冥狂_七 阅读(214) 评论(0) 推荐(0)
摘要: 1、Requests 用法 例子: import requests response = requests.get('https://www.baidu.com') print(type(response)) print(response.status_code) //200 print(type( 阅读全文
posted @ 2017-11-05 10:36 幽冥狂_七 阅读(254) 评论(0) 推荐(0)