摘要: from collections import namedtuplecard = namedtuple('card', ('rank', 'suit'))kapai = card('A', 'red')print(kapai)print(kapai.rank)print(kapai.suit) 阅读全文
posted @ 2020-01-06 10:23 菜菜_包包 阅读(586) 评论(0) 推荐(0) 编辑