以下哪个选项是一个字典

dictionary

Quiz
•
Computers
•
University
•
Hard

Shiwen Zhang
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = ('apple', 'banana', 'cherry')
x = {'type' : 'fruit', 'name' : 'banana'}
x = ['apple', 'banana', 'cherry']
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
词典创建后,词典条目就无法删除。
对
错
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
字典不能有两个同名的键。
对
错
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
您可以通过引用键名来访问字典项。
对
错
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
使用该get方法打印字典中“model”键的值car。
car = { "brand": "Ford", "model": "Mustang", "year": 1964 }
print(_________)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
考虑以下代码:打印结果是什么?
x = {'type' : 'fruit', 'name' : 'banana'}
print(x['type'])
banana
fruit
type = 'fruit'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
考虑以下代码
x = {'type' : 'fruit', 'name' : 'banana'}
哪个代码可以把fruit改为berry
x{'type'} = 'berry'
x['type'] = 'berry'
x.get('type') = 'berry'
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
软件工程 - 作业 5

Quiz
•
University
16 questions
大数据采集

Quiz
•
University
21 questions
第十章 div和span

Quiz
•
University
16 questions
第4回:シフト演算

Quiz
•
University
12 questions
simple

Quiz
•
University
12 questions
untitled

Quiz
•
4th Grade - University
15 questions
随堂测验-网络爬虫

Quiz
•
University
20 questions
第十三章 表格与列表

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade