def trim(s): i=0 j=len(s) while j==0: return '' while i<j and s[i]==' ': i=i+1 while j>=0 and s[j-1]==' ': j=j-1 if i>=j: return '' else: return s[i:j]
Sign in to make a reply
黄艳fly