第14944题 单选题
补全Python代码,筛选输出dictA中质数对应的因数条目

下面 Python 代码中的 dictA 是1-100所有数及其对应的因数,此处仅列出其中一部分。在横线处填上合适代码实现需求:

dictA = {1: (1,), 2: (1, 2), 3: (1, 3), 4: (1, 2, 4), 5: (1, 5), 6: (1, 2, 3)}
print({___________________________________________________________})
A

itm for itm in dictA if len(itm) > 2

B

K:VforK,VindictAiflen(V)>2

C

K: V for K, V in dictA.items() if len(V) > 2

D

K: K.value for K in dictA if len(dictA[K]) > 2

程序运行统计
暂无判题统计