摘要: 使用 .* import re data = "This is new book <testInfo> info"#如果是匹配,开始符后面的所有字符,只能用.* 如果使用 .*?就会匹配不到任何字符 result = re.findall("<(.*)",data) print(result) #如 阅读全文
posted @ 2024-12-07 21:36 苹果芒 阅读(23) 评论(0) 推荐(0)