Discuss / Python / 练习

练习

Topic source

def is_palindrome(n):

    n=str(n)

    t=len(n)

    for i in range(t):

        return n[i]==n[t-i-1]


  • 1

Reply