第14684题 判断题
判断给定Python代码中以tuple为dict键的操作是否执行报错

Python 的 dict 类型,其键(key)可以是 tuple 类型,但不可以是 list 类型。给定代码如下:

tab99 = {}
for i in range(1, 9 + 1):
    for j in range(1, i + 1):
        tab99[(j, i)] = i*j
print(tab99)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析