摘要: 一、collection模块 1.具名元组 namedtuple 一般用于扑克洗牌、坐标等场景 from collections import namedtuple point = namedtuple('坐标',['x','y','z']) # 第二个参数既可以传可迭代对象 # point = n 阅读全文
posted @ 2019-07-18 21:07 小王八+1 阅读(255) 评论(0) 推荐(0)