Discuss / Python / 交作业

交作业

Topic source

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


  • 1

Reply