# -*- coding: utf-8 -*-
def trim(s):
if s!='' and s[0]==' ':
s=s[1:]
return trim(s)
elif s!='' and s[-1]==' ':
s=s[:-1]
else:
return s
Sign in to make a reply
关爱脑残有限公司
# -*- coding: utf-8 -*-
def trim(s):
if s!='' and s[0]==' ':
s=s[1:]
return trim(s)
elif s!='' and s[-1]==' ':
s=s[:-1]
return trim(s)
else:
return s
return s