写在if中的代码需要缩进多少个空格?

python2-lesson04

Quiz
•
Computers
•
2nd - 12th Grade
•
Medium

hang zheng
Used 77+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2
4
6
8
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
写在if代码块中,新的if判断语句需要缩进几个空格?
0
2
4
8
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
写在if代码块中,新的if判断语句中的执行代码需要缩进多少个空格
0
2
4
8
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
python代码中,缩进4个空格的意义是什么?
表示被上方未缩进的的代码包含
为了美观
没有什么意思,可以不缩进
把上方未缩进的代码包起来
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
只能在if语句中进行嵌套,不能在else语句中进行嵌套
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
一个if-else中只能进行1次if-else的嵌套
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
运行上图中代码,程序最后的结果是?
什么都不输出
输出yes
程序报错
输出NO
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
CyberSecurity Training - Quiz1

Quiz
•
1st - 5th Grade
10 questions
python2-lesson10

Quiz
•
2nd - 12th Grade
12 questions
Scratch介绍与动画基础

Quiz
•
3rd - 6th Grade
15 questions
第四章:输入装置

Quiz
•
10th Grade
15 questions
极客争霸赛-第四回合

Quiz
•
10th Grade
12 questions
S07.2 常见的应用软体

Quiz
•
10th Grade
16 questions
网络安全知识竞赛—网络素养

Quiz
•
4th - 6th Grade
16 questions
S10.5+10.6 通讯媒介传输装置+网络架构

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade