在字典中,每个键的值都是唯一的,不可能有重复的键

python2-lesson08

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

hang zheng
Used 80+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
在字典中,每个值都是唯一的,不可能具有相同的值
True
False
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
运行上图中的代码,最后的输出结果是?
102:小明的家
小明的家
102:小红的家
小红的家
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
a={108:“小明的家”,126:“小红的家"},现在想将键为108的值修改为烈烈的家,下列代码正确的是?
a[126]="烈烈的家"
a[108]="烈烈的家"
a="烈烈的家"
a["烈烈的家"]=108
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
b={1,2,4,5,6},变量b是一个?
元组
列表
字典
集合
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
a={1,1,2,2,3,4}
print(a)
最后输出的结果是?
{1,2,3,4}
{1,1,2,2,3,4}
1,2,3,4
1,1,2,2,3,4
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
已知a是一个字典,现在想要清空a中的所有元素,下列代码正确的是?
a.pop()
a.clear()
a.clean()
a.remove()
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
AP First Semester Study Guide Page 2

Quiz
•
9th Grade
15 questions
110資安素養自我評量-中年級-1.我的帳密是秘密?

Quiz
•
3rd - 4th Grade
10 questions
S01.1 资讯革命时代的来临

Quiz
•
7th Grade
10 questions
台中市三年級資訊2-02數位學習高手-01主動學習樂

Quiz
•
3rd - 12th Grade
10 questions
6年级信息与通讯技能

Quiz
•
6th Grade
15 questions
网络与通讯

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

Quiz
•
10th Grade
10 questions
五年级 设计与工艺 16.6.2021

Quiz
•
5th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade