print (" %d" % (9*6)) print('{:d}'.format(9*6)) #新的寫法. 這個例子,在99乘法表中用過,%d 表示十進位的整數。 至於浮點數則用%f 操作: print('%f ...
確定! 回上一頁