Python modulo negative numbers ... Use actual floor from math module so 9 % -4 = mod (9, -4) = 9 - (-4 * floor(9/-4)) 9/-4 gives -2.25 floor ...
確定! 回上一頁