python内置进制转换函数

a = 17
bin(a) 	
# 0b10001

oct(a)
# 0o21

dec(a)
# 17

hec(a)
# 0x11
posted @ 2021-09-09 11:38  flxx  阅读(61)  评论(0编辑  收藏  举报