关于作者

Discuss / Python / is_palindrome

is_palindrome

问题来源

竹聿Simon

#1 Created at ...

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


  • 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.