回文数
#只接受序列
def isPalindrome(s):
return s == s[::-1]
#只接受数字
def isPalindrome(num):
s = '%d' % num
return s == s[::-1]
#只接受序列
def isPalindrome(s):
return s == s[::-1]
#只接受数字
def isPalindrome(num):
s = '%d' % num
return s == s[::-1]