题解 | #字符串中找出连续最长的数字串#
字符串中找出连续最长的数字串
https://www.nowcoder.com/practice/bd891093881d4ddf9e56e7cc8416562d
import re ss = input() ll1 = re.split('[a-z]| ',ss) ll2 = list(map(len,ll1)) print(ll1[ll2.index(max(ll2))])
字符串中找出连续最长的数字串
https://www.nowcoder.com/practice/bd891093881d4ddf9e56e7cc8416562d
import re ss = input() ll1 = re.split('[a-z]| ',ss) ll2 = list(map(len,ll1)) print(ll1[ll2.index(max(ll2))])
相关推荐