In Python, is there a way to get the largest integer one can use? Is there some pre-defined constant like INT_MAX?
add a comment
|
Python has arbitrary precision integers so there is no true fixed maximum. You're only limited by available memory. In Python 2, there are two types,
works fine and returns a
| ||||
sys.maxsize
can be used when you need an arbitrarily-large value. – mattdm Jan 23 '12 at 19:07arbitrary
常用词汇- adj.任意的;专制的;武断的;霸道的
Adjective:based on or subject to individual discretion or preference or sometimes impulse or caprice;"an arbitrary decision""the arbitrary rule of a dictator"
"an arbitrary penalty"
"of arbitrary size and shape"
"an arbitrary choice"
"arbitrary division of the group into halves"
我的选择相当随意。
我不习惯你们那些随心所欲的标准。
这是个武断的决定。
precision
常用词汇- n.精确;精密度
- adj.精确的
Noun:the quality of being reproducible in amount or performance;"he handled it with the preciseness of an automaton""note the meticulous precision of his measurements"
- The teacher laid emphasis on the precision of the translation from the outset.
- Your report lacks precision.
- Every argument was stated with logical precision.
- These instruments are capable of very high precision.
- Different time have different concepts on precision or high precision mold.
查看更多老师从一开始就强调翻译准确性。
你的报告不够准确。
每一个论点都阐述得精确严密,符合逻辑。
这些仪器可以达到很高的精密度。
对于精密或超精密度模具,不同时期有不同的概念。
他用极为精确的话语发言。
精确的测量是生产互换零件和批量产品的关键。