Discuss / Python / 练习题打卡

练习题打卡

Topic source

蜜蜂-Leo

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

上一个汉尼塔,这个去空格,卡了好久……

    while s[:1]==' ':
        s = s[1:]
    while s[-1:]==' ':
        s = s[:-1]
    return s

  • 1

Reply