📜  python 从字符串中获取 int - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:39.967000             🧑  作者: Mango
代码示例2
>>> import re
>>> string1 = "498results should get"
>>> int(re.search(r'\d+', string1).group())
498