python 3 types module

后端 未结 1 397
傲寒
傲寒 2021-01-04 13:17

I have a little question about difference between python 2.X and python 3.X. Why in python 3 types module is so small? Thnx

Python 2.7
>>> import ty         


        
相关标签:
1条回答
  • 2021-01-04 13:54

    In Python 3.x, the types module removed all types that are already accessible via easier means like the builtin namespace. For example, you will see that ListType and IntType have been removed because you can simply access them via list and int respectively.

    0 讨论(0)
提交回复
热议问题