AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# 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 ~~~