def trim(s): if s == '': return '' if s[0] == ' ': return trim(s[1:]) if s[-1] == ' ': return trim(s[:-1]) return s
Sign in to make a reply
蝉的夏