numpy常用函数 数字取整 >>> import numpy >>> print(numpy.ceil(1.7)) 2.0 >>> print(numpy.floor(1.7)) 1.0 >>> print(int(1.7)) 1 >>>