当前位置:   article > 正文

用python编写一个点餐程序_python3实现点餐系统

点菜程序python 语言

#coding UTF-8

# version = version_1_2

today_menu = ["今天菜单如下","1 宫保鸡丁","2 青椒鸡米粒" ,"3 白萝卜焖肉", "4 蒜薹腊肉", "5 豆腐包肉 ",

"6 鲤鱼跃龙门", "7 凉拌莲藕", "8 红烧南瓜", "9 大白菜", "10 青菜", "11 荷包蛋(另加2元)", "12 蛋炒饭(10元)"]price =[0,0,12,0,0 ,10 ,13,0,9,11,14,0,10,0,15,0]

def getTodayMenu():

return today_menu

def showTodayMenu(interable):

for today_menu_details in today_menu :

print(today_menu_details)

def showCombineNote():

print("提示:一荤一素10,两素菜9元,一荤两素11,,三素菜10,两荤菜12,两荤一素13,两荤两素14,两荤三素15元")

print("请输入您点餐的编号,编号之间用逗号分开,不同份数之间用空格隔开n例如输入1,9,10 2,6,8 3,10,谢谢 : ")

def dealWithUserInput():

user_choise = input()

user_choise_list = user_choise.split()

price_total = 0#用price

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/80642
推荐阅读
相关标签
  

闽ICP备14008679号