关于序列: a.多个成员 b.有序排列
特性:能够通过下标索引
成员判断 in ,not in
+操作(类型连接,必须是同类型) [a,b,c] + [d,e,f] ==> [a,b,c,d,e,f]
重复操作 (1,2,3) * 3 ==> (1,2,3,1,2,3,1,2,3)
序列相应函数: len(),max(),min(),sum() //当序列或元组中为数字时sum为将其中所有元素相加,当为字符串时,sum()将不能再使用
特性:能够通过下标索引
成员判断 in ,not in
+操作(类型连接,必须是同类型) [a,b,c] + [d,e,f] ==> [a,b,c,d,e,f]
重复操作 (1,2,3) * 3 ==> (1,2,3,1,2,3,1,2,3)
序列相应函数: len(),max(),min(),sum() //当序列或元组中为数字时sum为将其中所有元素相加,当为字符串时,sum()将不能再使用