def trim(s): if s =='': return s while s[:1] ==' ': s = s[1:] while s[-1:] == ' ': s = s[:-1] return s
Sign in to make a reply
王有才有财