2020 March 14 study notes python - other (binary coded decimal character hash)

Binary defined: a binary numerical technique widely used. Binary data is the number 0 and 1 with two digital represented. Its base is 2, carry rule is "every a binary"

Converting between binary and decimal:

10001

1*2^4+0*2^3+0*2^2+0*2^1+1*2^0=17

python using bin (decimal to binary)

 

Decimal to binary conversion:

17

 

Guess you like

Origin www.cnblogs.com/jianchixuexu/p/12571154.html