从0到1的ChatGPT (5)|推推
findall(r'\#+[^\#]*', text) # 匹配标题和内容for match in matchs: m2 = re.search(r'\#+.*', match) t2 = m2.g...
打开推推查看详情
findall(r'\#+[^\#]*', text) # 匹配标题和内容for match in matchs: m2 = re.search(r'\#+.*', match) t2 = m2.g...
打开推推查看详情