python:數字(number)

pythons數學函數:以下函數都要導入math模塊 1、fabs( x ):    返回數字的絕對值。       如:math.fabs(-10)),返回10.0   2、ceil( x ):    返回數字的上入整數。    如:math.ceil(4.1),   返回5      (此方法不是四捨五入) 3、floor( x ):  返回數字的下舍整數,  如: math.floor(4.
相關文章
相關標籤/搜索