请问如何在python清洗数据中对图上office box提取不规则字符串中票房数据例如:“4904万元”“7.5963亿元”。感谢感谢🙏🙏🙏
import re s = '截止10月10日累计票房4904万元' mt = re.match('.*?(\d+[万亿]*?元).*', s) if mt: print(mt.groups(1))