摘要: >>> def trim(s): ... if len(s)==0:... return s... else:... while s[0]==' ':... s=s[1:]... while s[-1]==' ':... s=s[0:-1]... return s 阅读全文
posted @ 2018-03-27 10:50 Horse-Ma 阅读(1374) 评论(0) 推荐(0) 编辑