Discuss / Python / 打卡练习

打卡练习

Topic source

是停留啊

#1 Created at ... [Delete] [Delete and Lock User]
def trim(s):
    while s != '' and s[0] == ' ':
        s = s[1:]
    while s != '' and s[-1] == ' ':
        s = s[:-1]
    return s

  • 1

Reply