Discuss / Python / 切片

切片

Topic source

去鸭冲鸭

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

def is_palindrome(n):

    a=str(n)

    b=a[::-1]

    if a==b:

        return n


  • 1

Reply