while s[-1:]==' ':
s=s[:-1]
while s[:1]==' ':
s=s[1:]
if len(s)==0:
s="没有文字"
return s
Sign in to make a reply
呼呼KirbyS
while s[-1:]==' ':
s=s[:-1]
while s[:1]==' ':
s=s[1:]
if len(s)==0:
s="没有文字"
return s