Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-4
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
56b03783
authored
Aug 10, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
1c757995
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
quiz.py
quiz.py
View file @
56b03783
today_menu
=
{
'菜汤'
:{
'熏连鱼'
:
20
'生蚝'
:
20
'面包'
:
10
},
daf
new_input
():
'汤'
:{
'玉米浓汤'
:
15
'蔬菜汤'
:
15
'海仙汤'
:
15
},
total
=
[]
'甜品'
:{
'颗粒炉'
:
20
,
'蓝莓送亲'
:
20
}
while
True
:
for
k
,
v
in
today_menu
.
items
():
unit
=
input
(
'请输入(q)退出'
)
print
(
'今日'
+
k
+
有
')
if
unit
==
'q'
:
for i in v:
break
print(i,end='')
else
:
print()
total
.
append
(
unit
)
\ No newline at end of file
prinbt
(
total
)
new_input
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment