Discuss / Python / MYH:回文数

MYH:回文数

Topic source

master_Hang

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

def is_palindrome(n):

    s = str(n)

    if s == s[::-1]:

        return n


  • 1

Reply