Python多级菜单选项
product_info = {
"fruit":{
"苹果": ["红富士","金帅"],
"西瓜": ["黑美人","沙瓜"],
"桃子": ["油桃","肥桃"],
},
"meat":{
"beef":["50¥","生肉"]
},
"Vegetables":{
"potato":["5.5¥","很大的"]
}
}
product_info["fruit"]["西瓜"][1] = "进口外国"
#av_catalog.setdefault("大陆",{"www.baidu.com":[1,2]})
print(product_info)