题解 | #字符串中找出连续最长的数字串#
字符串中找出连续最长的数字串
http://www.nowcoder.com/practice/bd891093881d4ddf9e56e7cc8416562d
#题比较简单,如果给出的数字不是顺序的,就会比较麻烦
import re, bisect
w = re.findall(r'\d+', input())
n = list(map(int, w))
print(max(n))
字符串中找出连续最长的数字串
http://www.nowcoder.com/practice/bd891093881d4ddf9e56e7cc8416562d
相关推荐