Discuss / Python / 交作业

交作业

Topic source

聽Amy

#1 Created at ... [Delete] [Delete and Lock User]

def trim(s): if s[:1]==' ': s=trim(s[1:]) if s[-1:]==' ': s=trim(s[:-1]) return s


  • 1

Reply