条件匹配皆可用堆栈知识解决 import re def stack_count(s1,s2): if len(s1) > len(s2): s1,s2 = s2,s1 stack=[] max_list=[] #栈弹出后用list记录下弹出的长度,最后用max(list)来获取最大公共字符串 for i in range(len(s1)): stack.append(s1[i]) for j in s1[i+1:]: stack.append(j) if n...