水果={"苹果":10,"芒果":12,"榴莲":20,"香蕉":5} name="" value=0 for k,v in 水果.items(): if v>value: name=k value=v print(name,":",value)
你替换一下中文就好了,功能一样,望采纳