关于作者

Discuss / Python / 作业

作业

问题来源

梘香

#1 Created at ...

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

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


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.