内置函数-bin 转2进制

print(format(14,'#b'))

print(format(14,'b'))

print(bin(14))

 

运行结果

 

0b1110
1110
0b1110

posted @ 2021-07-02 14:51  社会你玲姐  阅读(118)  评论(0)    收藏  举报