抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

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