搞了半天原来是这个。
def trim(s): while s[:1]==' ': s=s[1:] while s[-1:]==' ': s=s[:-1] return s
Sign in to make a reply
科维扎基哈得那奇
搞了半天原来是这个。