我的 re.search
的输出返回 <_sre.SRE_Match object at 0x10d6ed4e0>
我想知道如何将其转换为字符串?还是更易读的形式?
最佳答案
你应该这样做:
result = re.search(your_stuff_here)
if result:
print result.group(0)
关于python - 将 SRE_Match 对象转换为字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23025565/