【发布时间】:2019-09-01 12:35:10
【问题描述】:
我想在 python 中打印字典。
menu = {
1: ("Single Red Roses", 29),
2: ("Burst of Spring Posy", 59),
3: ("Super Grade Red Roses", 69),
4: ("Lemon Gelato Roses", 79),
5: ("Market Fresh Pin Lily", 79),
6: ("Summer Daisy Gerbera", 79),
7: ("Bag of Garden Roses", 89),
8: ("Blue Lime Spring Rosy", 89),
9: ("Hot Pink Roses", 89),
10: ("Class White Roses", 99),
11: ("Fresh Lime", 109),
12: ("Boxed Red Roses", 129),
13: ("Tropical Rain-forest Bouquet", 149),
}
这是我的代码,我不知道该怎么做,因为我是新手,谢谢你的帮助:)
编辑:我如何制作它以便它一个一个地打印每个列表。
【问题讨论】:
-
print(menu)没有给你想要的吗? -
如果不是
print(menu)那么我不知道这个问题在问什么。