import re str1 = 'AwdnmdB' re1 = r'A(.*?)B' reResult = re.findall(re1, str1) print(reResult) 最后编辑:2020年04月22日 ©著作权归作者所有 赞 7 分享
可以的,感谢大佬