第26483题 单选
Python代码横线处填写哪项可实现输出dictA中质数对应的因数?

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: V for K, V in dictA if len(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

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