Python中三级菜单

    技术2024-11-08  9

     

    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)

    Processed: 0.020, SQL: 9