Introduction. Hex, octal, and binary formats are supported by the format method. Demo. print( '{0:X}, {1:o}, {2:b}'.format(255, 255, 255) ) # Hex, octal, ...
確定! 回上一頁