Python 将整数变成二进制数

binary(10)

bin(10)

a = bin(10).replace('0b')  # 把0b这个前缀删掉;

posted @ 2022-07-28 19:20  bH1pJ  阅读(57)  评论(0)    收藏  举报