re

  

re.split(r'\d+','one1two2three4five')
['one', 'two', 'three', 'five']

适用场景: 从一堆字符串中匹配若干组数字

posted @ 2017-11-27 22:05  人微言轻1  阅读(197)  评论(0编辑  收藏  举报