Commit 936709fb by BellCodeEditor

auto save

parent 16db9fa3
Showing with 21 additions and 16 deletions
# 原代码:
city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥','旧金山']
r=input('你想去哪里啊?')
if r in city:
print('可以乘坐飞机通往'+r)
else:
print('没有'+r+'这座城市')
def data(): today_menu={'前菜':{'熏鲢鱼':20,'生蚝':20,'面包':10},
total=[] '汤':{'玉米浓汤':15,'蔬菜汤':15,'海鲜汤':15},
while True: '主菜':{'鱼':40,'虾':30,'蟹':20,'贝壳类':20},
a=input() '间菜':{'牛扒':25,'煨菜':25,'肉排':30},
try: "烧烤和沙拉":{'需要':15,'不需要':0},
a=int(a) '甜品':{'可丽露':20,'优格吐司':15,'蓝莓松饼':20}
except: }
if a=='q':
break for k,v in today_menu.items():
else: print('今日' + k + '有:')
print("输入整数") for i in v:
else: print(i,end=' ') #依次告诉客人今天的各类菜有哪些选择
total.append(a) print()
print(total) \ No newline at end of file
data()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment