阅读背景:

如何转换列表中的垂直字符串?

来源:互联网 
d = {'Banana' : {'price': 7, 'Color' : "yellow"},
'Apple' : {'price' : 8, 'Color': "green"}, 'Orange' :{'price' : 6, 'Color': "orange"}}
for fruit, props in dict.iteritems():
    prices= str(props['price']):
d = {'Banana' : {'price': 7, 'Color' : "yellow"



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: