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
3e68c783
authored
Sep 03, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
9d21ab68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
store.py
store.py
View file @
3e68c783
s1
=
{
'语文'
:
89
,
'数学'
:
96
,
'英语'
:
85
}
s2
=
{
'语文'
:
99
,
'数学'
:
86
,
'英语'
:
95
}
s3
=
{
'语文'
:
83
,
'数学'
:
100
,
'英语'
:
95
}
s
=
{
'悟空'
:
s1
,
'李四'
:
s2
,
'王二'
:
s3
}
print
(
s
[
'悟空'
])
\ No newline at end of file
s
=
{
'1'
:
s1
,
'李四'
:
s2
,
'王二'
:
s3
}
while
True
:
n
=
input
(
'请输入姓名:'
)
if
n
==
"q"
:
print
(
'本次查询到此他奶奶的结束,欢迎他娘的下次光临'
)
break
else
:
if
n
in
s
:
print
(
'*'
*
36
)
print
(
'姓名:'
+
n
)
for
k
,
v
in
s
[
n
]
.
items
():
print
(
k
,
v
)
print
(
'*'
*
36
)
else
:
print
(
'*'
*
37
)
print
(
'对不起,该用户名不存在,滚!!!!!!'
)
print
(
'*'
*
37
)
\ 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