1.求大神帮忙做一下这个python题目
求大神帮忙做一下这个python题目
1)d = { '面条':,水饺discuz论坛源码上传'米饭':1,'蛋炒饭':,'水饺':9}
2)
L = len(d)
S = sum(d.values())
print(S/L)
3)
m = max(d.values()) #先找出价格最大的值
print(list (d.keys()) [list (d.values()).index (m)]) #再根据值输出键
copyright © 2016 powered by 皮皮网 sitemap