Discuss / Python / 用一用昨天学的递归

用一用昨天学的递归

Topic source

宋忠义_

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

好评


  • 1

Reply