diff --git a/diy.py b/diy.py index e3d6f98..780a62d 100644 --- a/diy.py +++ b/diy.py @@ -12,6 +12,6 @@ today_menu={'前菜':{'熏鲢鱼':20,'生蚝':20,'面包':10}, for k,v in today_menu.items(): print('今日' + k +'有:') - for i in k: - print(i,end=' ') #依次告诉客人今天的各类菜有哪些选择 - print() \ No newline at end of file + for i,j in v.items(): + print(i,j,sep = ':',end=' ') #依次告诉客人今天的各类菜有哪些选择 + print()#换行 \ No newline at end of file