TA贡献1841条经验 获得超3个赞
向下取整
TA贡献1842条经验 获得超21个赞
def ceil(x, y): return int((x+y-1)/y)
然后ceil(-5,3)或者直接
int((-5+3-1)/3)
举报