Discuss / Python / 最简单的方式

最简单的方式

Topic source

'''

def trim(s): while " " is s[0]: s = s[1:] while " " is s[-1]: s = s[:-1] return s '''


  • 1

Reply