def trim(s): if s[:1]==' ': s=trim(s[1:]) if s[-1:]==' ': s=trim(s[:-1]) return s
Sign in to make a reply
聽Amy
def trim(s): if s[:1]==' ': s=trim(s[1:]) if s[-1:]==' ': s=trim(s[:-1]) return s