python利用正则表达式提取字符串

it2024-03-30  59

import re str = "a123123b" print(re.findall(r"a(.+?)b", str)) ########### ['123123']

 

最新回复(0)