if s[0]==" ":
s=s[:1]
elif s[-1]==" ":
s=s[-2:]
elif s[0]==" " and s[-1]==" ":
s=s[:1:-2]
else:
s=s
return s
Sign in to make a reply
如初
if s[0]==" ":
s=s[:1]
elif s[-1]==" ":
s=s[-2:]
elif s[0]==" " and s[-1]==" ":
s=s[:1:-2]
else:
s=s
return s