import re
str = "AwdnmdB"
re = r'A(.*?)B'
result = re.findall(re,str)
print(result)
//打印结果为:wdnmd
Python取两个字符串之间的内容
最新推荐文章于 2024-08-18 06:01:45 发布
import re
str = "AwdnmdB"
re = r'A(.*?)B'
result = re.findall(re,str)
print(result)
//打印结果为:wdnmd