已知,小红的语数外成绩分别为60,77,81;小张的语数外成绩分别为90,55,78;小丽的语数外成绩分别为82,73,95.创建二位列表list3=[['小红',60,77,81],['小张',90,55,78],['小丽',82,73,95]],要求对list3中的数学成绩排序,按照升序排列。以下语句正确的是
A. sorted(list3,key=lambda e:e[3], reverse=True)
B. sorted(list3,key=lambda e:e[3], reverse=False)
C. sorted(list3,key=lambda e:e[2], reverse=True)
D. sorted(list3,key=lambda
E. e[2], reverse=False)
字典dic1={ ‘宝藏1’:800, ‘宝藏2’ :1200, ‘宝藏3’ :2000, ‘宝藏4’ :300, ‘宝藏5’ :500, ‘宝藏6’ :1000}下面哪个程序可输出如下的格式: 宝藏1 800 宝藏2 1200 宝藏3 2000 宝藏4 300 宝藏5 500 宝藏6 1000
A. dic1={‘宝藏1’:800,’宝藏2’:1200, ‘宝藏3’:2000,’宝藏4’:300, ‘宝藏5’:500,’宝藏6’:1000}for d in dic1:print(d)
B. dic1={‘宝藏1’:800,’宝藏2’:1200, ‘宝藏3’:2000,’宝藏4’:300, ‘宝藏5’:500,’宝藏6’:1000}for d in dic1:print(dic1[d])
C. dic1={‘宝藏1’:800,’宝藏2’:1200, ‘宝藏3’:2000,’宝藏4’:300, ‘宝藏5’:500,’宝藏6’:1000}for d in dic1:print(d,dic1[d])
D. 以上都不对