def trim(s): while s[:1]=='空格 ': s=s[1:] while s[-1:]=='空格 ': s=s[:-1] return s
Sign in to make a reply
你的前桌我的后座
def trim(s): while s[:1]=='空格 ': s=s[1:] while s[-1:]=='空格 ': s=s[:-1] return s