我看到namedtuple的Python语法是:
Point = namedtuple('Point', ['x', 'y'])
为什么不这样简单:
Point = namedtuple(['x','y'])
它不那么冗长,
python namedtuple
namedtuple ×1
python ×1