Converting a number to binary with a fixed length

前端 未结 4 659
长发绾君心
长发绾君心 2020-12-01 09:08

Say I get a random number between 1 and 127. I change the number to binary and remove the 0b from it with the fallowing code:

key_one= int(raw_i         


        
4条回答
提交回复
热议问题