Discuss / Python / 交作业

交作业

Topic source

wwdx0001

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

def is_palindrome(n): s = str(n) for i in range(len(s)): if s[i] != s[len(s)-i-1]: break return n

你这为啥四位以上会错


  • 1

Reply