fluent Python 记录

一、method collections.namedtuple() can be used to build classesof objects that are just bundles of attributes with no custom methods, like a database record. python

Card = collections.namedtuple('Card', ['rank', 'suit'])

二、ui

相关文章
相关标签/搜索