Discuss / Python / 简洁!简洁!

简洁!简洁!

Topic source

loveKD92

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

def is_palindrome(n): n=str(n) return n == n[::-1] output = filter(is_palindrome, range(1, 1000)) print(list(output))


  • 1

Reply