Python中的内建函数,可迭代对象,迭代器

求值标识 id() #标识id 返回对象的唯一标识,CPython返回内存地址 hash() #哈希, 返回对象的哈希值 len(s) -->返回一个集合类型的元素个数 range(start,stop[,step]) -->返回一个从start开始到stop结束,步长为step的可迭代对象。step默认为1 类型判断 type() #返回对象的类型 isinstance(obj,class_or
相关文章
相关标签/搜索