# -*- coding: utf-8 -*-
def trim(s):
if not s:
return s
if s[:1] ==' ':
return trim(s[1:])
elif s[-1:] ==' ':
return trim(s[:-1])
else:
Sign in to make a reply
好汉饶命我善意第三人
# -*- coding: utf-8 -*-
def trim(s):
if not s:
return s
if s[:1] ==' ':
return trim(s[1:])
elif s[-1:] ==' ':
return trim(s[:-1])
else:
return s