Discuss / Python / 这样就OK吧

这样就OK吧

Topic source

def trim(s): while s[:1]=='空格 ': s=s[1:] while s[-1:]=='空格 ': s=s[:-1] return s


  • 1

Reply