Discuss / Python / 土办法

土办法

Topic source

def is_palindrome(n): return n == int(reduce(lambda x,y:x+y,list(str(n)[::-1])))


  • 1

Reply