From 3b8d7ea7fea9d78c642397cfd7c68838ac7cdf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=B3=E9=98=B3?= <260893248@qq.com> Date: Tue, 19 Sep 2017 00:02:08 -0500 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AA=E9=94=99?= =?UTF-8?q?=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如题 --- note/python/collections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/note/python/collections.md b/note/python/collections.md index bd65ca8..a98a09e 100644 --- a/note/python/collections.md +++ b/note/python/collections.md @@ -22,7 +22,7 @@ namedtuple是在python2.6中开始出现的,在collections模块下面,它扩展 语法是这样的: collections.namedtuple(typename, filed_names[, verbose]) -地一个参数指定新类型的名字,第二个参数是字符串(用空格或者逗号隔开)它构成了这个类型的域. 如果verbose等于True.那么就会打印出类生成信息. +第一个参数指定新类型的名字,第二个参数是字符串(用空格或者逗号隔开)它构成了这个类型的域. 如果verbose等于True.那么就会打印出类生成信息.  >>> People = namedtuple("People",'age name', True) class People(tuple):