Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
数字の逆並び
num = 12452
print num
print str(num)[::-1]
## 2進数の場合
print bin(num).split("0b")[1]
print bin(num).split("0b")[1][::-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.