当前位置:首页 > 编程技术 > 正文

如何用函数搜索关键字统计金额

如何用函数搜索关键字统计金额

……...

ҪʹúؼֲͳƽǿԴһPythonúһַбһؼ֡úбеÿַؼ֣ؼֵַнܺ͡һ򵥵ʵ֣

```python

import re

def sum_amounts_with_keyword(strings, keyword):

ʽƥʽΪ "100""USD 200""300"

amount_pattern = re.compile(r'([$]{1

最新文章