企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
| types模块 | 内置模块 | | --- | --- | | types.IntType | 整型 | | types.FloatType | 单精度类型 | | types.StringType | 字符串类型 | | types.ClassType | 类 | | types.InstanceType | | ``` import types if type(object) is types.IntType: print "INTEGER", if type(object) is types.FloatType: print "FLOAT", if type(object) is types.StringType: print "STRING", if type(object) is types.ClassType: print "CLASS", if type(object) is types.InstanceType: print "INSTANCE", print ```