Discuss / Python / 作业

作业

Topic source

梘香

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

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

output = filter(is_palindrome, range(1, 1000)) print(list(output))


  • 1

Reply