How to conduct python binary conversion and how to remove the prefix with hexadecimal format

 

10 decimal, hexadecimal, octal, binary conversion:
(#: reserved prefix hexadecimal)
Here Insert Picture Description
for band with prefix, such as "0x" "0o" "0b ", directly followed by the 'x '' o''b 'delete:
Here Insert Picture Description
Some other tips:
format(num, ",")fast segmentation thousandths
Here Insert Picture Description
number is how many of completion, ^ centered> right-aligned <align left
* ^ 10 Unexpected text the Node:' & ThickSpace; ' Unexpected text the Node : '& ThickSpace;' total of 10, the middle, with the remaining filled *
Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/ellisonzhang/p/11274485.html