#!/usr/bin/env python3 # -*- coding: utf-8 -*- def is_palindrome(n): return str(n)==str(n)[::-1] output = filter(is_palindrome, range(1, 1000)) print(list(output))
Sign in to make a reply
早起的达先生