From 3e6ef35ea0e7d513305732c63628b25a402a9488 Mon Sep 17 00:00:00 2001 From: LSGOMYP Date: Tue, 21 Jul 2020 12:52:55 +0800 Subject: [PATCH] =?UTF-8?q?Update=2011.=20=E5=BA=8F=E5=88=97.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Python-Language/11. 序列.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 [...]])`