A named tuple is a tuple whose positions also have names, so that b.year and b[2] read the same value. In Python, namedtuple("Book", ["title", "author", "year"]), from the module collections, creates a new type Book of such tuples.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表