python札记

进制转换

num = "0011"
v = int(num, base=16)
print(v)
2->16
posted @ 2019-03-05 12:13  丹心静居  阅读(77)  评论(0编辑  收藏  举报