Python3和Python2中int和long的区别?
- 2020 年 6 月 8 日
- 筆記
Python3:Python3中int类型的范围是动态长度的,正整数或者负整数,用sys.getsizeof()可以看int占了几位.
Python2:Python2中long类型的范围是无限大小.
Python3:Python3中int类型的范围是动态长度的,正整数或者负整数,用sys.getsizeof()可以看int占了几位.
Python2:Python2中long类型的范围是无限大小.