Discuss / Python / 优雅

优雅

Topic source
def is_palindrome(n):
    s = str(n)
    return s == s[::-1]

  • 1

Reply