python正则找到字符串里面的数字

totalNumbers = re.findall(r'\d+',str)

 

posted @ 2020-03-13 10:59  brady-wang  阅读(1345)  评论(0编辑  收藏  举报