主页
Python
Python 正则表达式
demo_regex_meta2
运行 ❯
×
更改方向
保存代码
更改主题
import re txt = "That will be 59 dollars" #Find all digit characters: x = re.findall("\d", txt) print(x)
['5', '9']