if s==0: return s else: while s[:1]==' ': s=s[1:] while s[-1:]==' ': s=s[:-1] return s
大佬 你这个运行不出来
def trim(s): if s==0: return s else: while s[:1]==' ': s=s[1:] while s[-1:]==' ': s=s[:-1] return s
Sign in to make a reply
你可知我从未惧怕奔赴