Strange Python 3 mod behavior for longs

前端 未结 0 1599
眼角桃花
眼角桃花 2021-01-26 06:18

Consider this code snippet.

>>> n, m = 10011617, 100000000000006340
>>> s = lambda n: n * (n + 1) / 2
>>> s(n)
50116242483153.0
>>         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题