diff --git a/Python-Language/11. 序列.md b/Python-Language/11. 序列.md index f6b3707..eb20ebc 100644 --- a/Python-Language/11. 序列.md +++ b/Python-Language/11. 序列.md @@ -1,6 +1,8 @@ + + # 序列 - +在 Python 中,序列类型包括字符串、列表、元组、集合和字典,这些序列支持一些通用的操作,但比较特殊的是,集合和字典不支持索引、切片、相加和相乘操作。 ## 1. 针对序列的内置函数 @@ -155,6 +157,10 @@ print(b) for i, element in a: print('{0},{1}'.format(i, element)) +# 0,Spring +# 1,Summer +# 2,Fall +# 3,Winter ``` - `zip(iter1 [,iter2 [...]])`