Update 3.md

勘误
pull/69/head
nianhen 2020-10-10 11:38:57 +08:00 committed by GitHub
parent 39b1d5bad7
commit 834f85ef21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ print(list1)
[4, 16, 36, 64, 100]
```
这个例子是为了求 1 到 10 中偶数的平方,上面也说到, `x * x` 是要生成的元素,后面那部分其实就是在 for 循环中嵌套了一个 if 判断语句。
这个例子是为了求 1 到 10 中偶数的平方,上面也说到, `x * x` 是要生成的元素,后面那部分其实就是在 for 循环中嵌套了一个 if 判断语句。
那么有了这个知识点我们也可以猜想出for 循环里面也嵌套 for 循环。具体示例: