Discuss / Python / 作业

作业

Topic source

雷锋20110

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

def is_palindrome(n): a = list(str(n)) b = list(str(n)) b.reverse() return a == b

倒序切片更好用,做完作业才在下面的答案里学到


  • 1

Reply