立即学习:https://edu.csdn.net/course/play/25650/308710?utm_source=blogtoedu
正则:
* 出现次数大于0;
+ 出现次数大于等于1;
re模块:
1.提取:re.findall(【正则】,【被提取的字符串】)
2.匹配:re.match(【正则】,【被匹配的字符串】)
3.替换:re.sub(【正则】,【替换成的字符串】,【被匹配的字符串】)
xpath
立即学习:https://edu.csdn.net/course/play/25650/308710?utm_source=blogtoedu
正则:
* 出现次数大于0;
+ 出现次数大于等于1;
re模块:
1.提取:re.findall(【正则】,【被提取的字符串】)
2.匹配:re.match(【正则】,【被匹配的字符串】)
3.替换:re.sub(【正则】,【替换成的字符串】,【被匹配的字符串】)
xpath