# 理解浮点数运算的误差
def cni(n,i):
minNI = min(i, n-i)
result = 1
for j in range(0, minNI):
result = result * (n - j) // (minNI - j)
return result
if __name__ == "__main__":
print(cni(4,2))
07 理解浮点数运算的误差
最新推荐文章于 2024-09-30 16:09:30 发布