在Python 中,可以使用正则表达式模块re 来筛选字符串中的数字。 具体实现方法如下: import re str = "hello123world456" result = re.findall('\d+', ...
確定! 回上一頁