NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# type和id # `type`和`id` `type`函数返回一个对象的类型。举个例子: ~~~ print(type('')) # Output: <type 'str'> print(type([])) # Output: <type 'list'> print(type({})) # Output: <type 'dict'> print(type(dict)) # Output: <type 'type'> print(type(3)) # Output: <type 'int'> ~~~ `id()`函数返回任意不同种类对象的唯一ID,举个例子: ~~~ name = "Yasoob" print(id(name)) # Output: 139972439030304 ~~~