python 算法

[toc] python 算法 命名元组namedtuple12345678910111213In [1]: from collections import namedtupleIn [2]: Point = namedtuple('P','x,y')In [3]: type(Point)Out[3]: typeIn [4]: p1 = Point(1...