>>> string = 'aaabbbccc'
>>> string.strip('abc')
''
>>> string2 = 'aaaffbbcc'
>>> string2.strip('abc')
'ff'
>>> string3 = 'aaaffbbffcc'
>>> string3.strip('abc')
'ffbbff'
上一篇:[implements] - 一个接口的使用


下一篇:hdu3555 Bomb 数位DP入门