交作业
Topic sourceif s == ' ':
return s
if s[0] == ' ':
return trim(s[1:])
else:
if s[-1] == ' ':
return trim(s[:-1])
return s
- 1
if s == ' ':
return s
if s[0] == ' ':
return trim(s[1:])
else:
if s[-1] == ' ':
return trim(s[:-1])
return s
用户7686226831