# 过滤对称数
def is_filter(data):
strValue = str(data)
return strValue == strValue[::-1]
if __name__ == '__main__':
result = list(filter(is_filter, range(100, 99999)))
print(result)
Python3过滤对称数
最新推荐文章于 2023-02-23 14:59:51 发布