def trim(s): if s == '': return '' elif s[0] == ' ': return trim(s[1:]) elif s[-1] == ' ': return trim(s[:-1])
最下面还有行return s
Sign in to make a reply
pink