>>> string = 'aaabbbccc' >>> string.strip('abc') '' >>> string2 = 'aaaffbbcc' >>> string2.strip('abc') 'ff' >>> string3 = 'aaaffbbffcc' >>> string3.strip('abc') 'ffbbff'
下一篇:hdu3555 Bomb 数位DP入门