第26479题 单选题
生成1-100各数因数字典的Python程序中,横线处应填入的代码是

下面 Python 代码的功能是在 dictA 中保存形如{12:[1,2,3,4,6,12]}的数据,即键为1-100 中的每个数,值为其对应的因数,横线处应填入代码是:

dictA = {} #保存1-100每个数对应的因数。
for i in range(1,100+1):
    for j in range(1,i+1):
        if i % j == 0:
            dictA[i] = 
            _________________________
print(dictA)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析