re 模块的高级用法. search. 需求:匹配出文章阅读的次数 #coding=utf-8 import re ret = re.search(r"\d+", "阅读次数为9999") ret.group(). 运行结果
確定! 回上一頁