题库 Python题库 题目列表 下面 Python 代码的功能是在 dictA&nb...
单选题

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

A.

dictA.get(i,[]).append(j)

B.

dictA.get(i,list).append(j)

C.

dictA.get(i,list())+ (j)

D.

dictA.get(i,[])+[j]

题目信息
2023年 6月 选择题
0%
正确率
0
评论
58
点击