题库 GESP试卷 题目列表 下面 Python 代码的功能是在 dictA 中保存形如{12:[1,...
单选题

下面 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
-
正确率
0
评论
8
点击
QQ
微信