Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_1
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
885a8000
authored
Feb 20, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2ec1b600
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
28 deletions
store.py
store.py
View file @
885a8000
mc1
=
{
'语文'
:
93
,
'数学'
:
93
,
'英语'
:
98
}
mc2
=
{
'语文'
:
88.5
,
'数学'
:
95
,
'英语'
:
97
}
mc3
=
{
'语文'
:
85
,
'数学'
:
95
,
'英语'
:
95
}
wc
=
{
'潘'
:
mc1
,
'禚'
:
mc2
,
'田'
:
mc3
}
while
True
:
print
(
"按'q'退出"
)
name
=
input
(
"名字:"
)
print
(
"*"
*
30
)
if
name
in
wc
:
wc
=
wc
[
name
]
for
k
,
v
in
wc
.
items
():
print
(
k
,
v
)
print
(
"*"
*
30
)
elif
name
==
"q"
:
break
else
:
print
(
"查无此人,滚!"
)
# 请将"农夫山泉"删掉,并打印出新的商品信息
mc
=
[
'2'
,
'4'
,
'1'
]
a
=
input
(
'去哪?'
)
for
a
in
mc
:
print
(
'可以去'
+
a
)
else
:
print
(
'没有'
+
a
)
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