摘要: ''' 容器序列 list tuple collections.deque 能存放不同类型的数据,容器序列存放的是他们所包含的任意类型的对象的引用,当对容器序列进行更改时,外部数据也会更改 扁平序列 str bytes bytearray memoryview array.array 这些序列只能容 阅读全文
posted @ 2019-12-01 16:25 换头怪 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 如何使用特殊方法 import collections Card = collections.namedtuple('Card', ['rank', 'suit']) ''' class Card{ public string rank{get;set;} public string suit{ge 阅读全文
posted @ 2019-12-01 14:39 换头怪 阅读(222) 评论(0) 推荐(0) 编辑