摘要: namedtuple -> 命名元组 这里的命名指的是对元组中元素的命名。 通过一个例子来看 namedtuple位于collections模块中,我们先导入collections模块。 然后创建一个名为Person的命名元组,我们可以看到,namedtuple接收两个参数。 第一个参数是named 阅读全文
posted @ 2019-01-25 22:12 WaltHwang 阅读(154) 评论(0) 推荐(0)