본문 바로가기
파이썬

파이썬은 int와 long을 어떻게 관리합니까?

by º기록 2020. 12. 26.
반응형

파이썬이 내부적으로 int 및 long 유형을 관리하는 방법을 아는 사람이 있습니까?

아래 코드를 어떻게 이해해야합니까?

>>> print type(65535)
<type 'int'>
>>> print type(65536*65536)
<type 'long'>

최신 정보:

>>> print type(0x7fffffff)
<type 'int'>
>>> print type(0x80000000)
<type 'long'>

 

해결 방법

 


3.x는 long을 모두 제거하고 int 만 사용하여이를 더욱 발전 시켰습니다.



 

참조 페이지 https://stackoverflow.com/questions/2104884

 

 

반응형

댓글