已知字典dic={"小红":{"语文":90,"数学":85,"外语":85},"小明":{"语文":91,"数学":88,"外语":98},"小":{"语文":95,"数学":99,"外语":90}},则以下能计算语文平均分的程序有:
A.
lst=[v["语文"] for k,v in dic.items()] print(sum(lst)/len(lst))
B.
s=0 for k,v in dic: s=s+v["语文"] print(s/len(dic))
C.
s=0 for k,v in dic.items(): s=s+v print(s/len(dic))
D.
s=0 for x in dic.items(): s=s+x[1]["语文"] print(s/len(dic))