在Python 中,可以使用正则表达式来匹配数字或逗号。具体实现可以使用re 模块,代码示例如下: import re text = "123,456,789" # 匹配数字或逗号 pattern ...
確定! 回上一頁