Python中的无限整数 [英] Infinite integer in Python
本文介绍了Python中的无限整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Python 3具有float('inf')
和Decimal('Infinity')
,但没有int('inf')
.那么,为什么在语言中缺少代表无限整数集的数字呢? int('inf')
不合理吗?
Python 3 has float('inf')
and Decimal('Infinity')
but no int('inf')
. So, why a number representing the infinite set of integers is missing in the language? Is int('inf')
unreasonable?
推荐答案
查看全文