Python Number Limit

后端 未结 4 2034
感情败类
感情败类 2020-12-29 21:47

I know in most, if not all programming languages, integers, floats etc all have a maximum amount they can hold, either unsigned or signed. Eg pascal\'s int type can only hol

4条回答
  •  Happy的楠姐
    2020-12-29 22:19

    There used to be a limit in earlier versions of Python for int. But, this is dropped as Python treats integers as objects. So, although Python allocates 32 bits for the value object reference is pointing to, as the value goes beyond 2^32 it can keep moving up all the way up to the size of RAM on your computer.

提交回复
热议问题