📜  python namedtuple typename - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:52.964000             🧑  作者: Mango

代码示例1
It gives a "type" attribute to your named tuple.
Point=namedtuple('whatsmypurpose',['x','y'], verbose=True)
>>>type(Point)
"whatsmypurpose"