python内置进制转换函数

a = 17
bin(a) 	
# 0b10001

oct(a)
# 0o21

dec(a)
# 17

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