while s[:1]==' ':
s=s[1:]
while s[-1:]==' ':
s=s[:-1]
return s
调用strip()咱也不会啊
厉害哦
Sign in to make a reply
正当风花雪月时
while s[:1]==' ':
s=s[1:]
while s[-1:]==' ':
s=s[:-1]
return s
调用strip()咱也不会啊