【示例6】使用b、d、o、x 分別輸出二進位、十進位、八進位、十六進位數字。 num = 100. print('{:b}'.format(num)) # 1100100. print('{:d}' ...
確定! 回上一頁