
python
python - 难度不大,可以掌握
问题不大的
礼多人不怪
展开
-
python中的序列类型
序列类型 容器序列 list, tuple, deque 可以存放任意类型的数据 扁平序列 str, bytes, bytearray, array.array 存放相同类型的数据 可变序列 list, deque, bytearray, array 不可变序列 str, tuple, bytes ...原创 2021-09-23 22:30:56 · 254 阅读 · 0 评论 -
python中type、object、class关系
一切皆对象。这对象是怎么实现的? type(1) --> class 'int' type(int) --> class 'type' type->int->1 type->class->obj object是最顶层基类原创 2021-09-22 23:07:04 · 401 阅读 · 0 评论 -
python内置类型
一切皆对象。 对象的三个特征: 身份、类型、值 None (全局只有一个) 数值 int, float, complex, bool 迭代类型 序列类型 list, bytes bytearray, memoryview, range, tuple, str, array 映射 集合 set, frozenset 上下文管理类型 with 其他 模块类型,class和实例,函数类型,方法类型,代码类型,object对象,type类型,ellipsis类型, notimplemente.原创 2021-09-22 22:51:22 · 586 阅读 · 0 评论