python字符串如何提取指定信息?

2025-03-30 20:16:44
推荐回答(1个)
回答1:

# encoding: utf-8
# Python 3.6.0
import re
text='{......}'
m=re.findall(r'(?<=\"y\":)[\d\.]+', text)
print(m)