From 6061b5c21d34a04aa9db67d2fcd50d5bc8213ee3 Mon Sep 17 00:00:00 2001 From: "Xingyu.Wang" Date: Sat, 26 May 2018 22:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...0180327 Loop better- A deeper look at iteration in Python.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/published/20180327 Loop better- A deeper look at iteration in Python.md b/published/20180327 Loop better- A deeper look at iteration in Python.md index e5de0dea0c..715d84867a 100644 --- a/published/20180327 Loop better- A deeper look at iteration in Python.md +++ b/published/20180327 Loop better- A deeper look at iteration in Python.md @@ -258,8 +258,8 @@ def funky_for_loop(iterable, action_to_do): 2. 反复从迭代器中获得下一项 3. 如果我们成功获得下一项,就执行 `for` 循环的主体 4. 如果我们在获得下一项时得到了一个 `StopIteration` 异常,那么就停止循环 -``` +``` def funky_for_loop(iterable, action_to_do):     iterator = iter(iterable)     done_looping = False