Python 如果想用print 輸出整數,可以用 %d 格式化整數輸出的方式:. 1 2, n = 123 print('%d' % n). 輸出:. 1, 123. Python 如果想用print 輸出浮點數( ...
確定! 回上一頁