5 / 2 # => 2 # 要做精確的除法,我們需要浮點數 2.0 # 浮點數 11.0 / 4.0 # => 2.75 精確多了! # 整數除法的無條件捨去 ... Python的輸出很方便 print "I'm Python.
確定! 回上一頁