Discuss / Python / 这是谁想出来的,太牛B了

这是谁想出来的,太牛B了

Topic source

vv阿甘vv

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

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

output = filter(is_palindrome, range(100, 999))
print(list(output))

  • 1

Reply