事实上是在讨论字典,字典是python中的映射类型,而列表,元组是序列类型。...1.尝试一下将数据(‘F’:70, ‘C’:67, ‘h’:104, ‘i’:105, ‘s’:115)创建为一个字典并访问键‘C’对应的值?...,对吗?...不是,如下: ```python >>> dict2 = {'A', 'l', 'l', 'e', 'n'} >>> dict2 {'e', 'l', 'A', 'n'} >>> type(...3}
>>> d
{'two': 2, 'one': 1, 'three': 3}
>>> e
{'three': 3, 'one': 1, 'two': 2}
5.如图,你可以推测出打了马赛克部分的代码吗