📜  python从字符串re中提取所有数字 - Python代码示例
📅  最后修改于: 2022-03-11 14:46:02.179000             🧑  作者: Mango
代码示例1
>>> str = "h3110 23 cat 444.4 rabbit 11 2 dog"
>>> [int(s) for s in str.split() if s.isdigit()]
[23, 11, 2]