Discuss / Python / 搞复杂了搞复杂了。

搞复杂了搞复杂了。

Topic source

_swayer

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

def ispalindrome(num): if num < 0: return false else: z = num temp = 0 while z!=0: y = z % 10 temp = temp *10 + y z = z//10 return num==temp


  • 1

Reply