Discuss / Python / 精简一下,一行代码判断

精简一下,一行代码判断

Topic source

赵小旭0205

#1 Created at ... [Delete] [Delete and Lock User]
def is_palindrome(n):    return str(n)==str(n)[::-1]

  • 1

Reply