Discuss / Python / 利用字符串索引

利用字符串索引

Topic source

def is_palindrome(n):

    return str(n)==str(n)[::-1]


  • 1

Reply