由於floor函數存在於math套件中,所以必須先載入該套件才可以使用。 列舉範例如下:. >>> import math >>> math.floor(4.56778) 4.0 >>> math.
確定! 回上一頁