Python基础语法-Python对象

来源:互联网 发布:python snmp开发教程 编辑:程序博客网 时间:2024/06/01 07:14

1.类型的类型

所有类型对象的类型都是type。它也是所有Python类型的根和所有Python标准类的默认元类(metaclass)。

>>> type(2)<class 'int'>>>> type(type(2))<class 'type'>>>> type(int)<class 'type'>>>> 

2.None,Python的Null对象