Discuss / Python / 作业

作业

Topic source

def is_palindrome(n):
    x = str(n) 
return x == x[::-1]

佩服!还是切片给力啊


  • 1

Reply