Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_7_2
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
b338757a
authored
Sep 25, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5f0e0ed4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
埃尔聚合物冲击波v.py
埃尔聚合物冲击波v.py
View file @
b338757a
weather
=
{
'北京'
:
8
,
'上海'
:
15
,
'广州'
:
20
,
'深圳'
:
21
}
score1
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
weather
=
{
'北京'
:
8
,
'上海'
:
15
,
'广州'
:
20
,
'深圳'
:
21
}
data
=
weather
.
pop
(
"北京"
)
print
(
data
)
print
(
weather
)
\ No newline at end of file
score1
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
score2
=
{
'语文'
:
97
,
'数学'
:
98
,
'英语'
:
90
}
score3
=
{
'语文'
:
95
,
'数学'
:
100
,
'英语'
:
93
}
score4
=
{
'语文'
:
100
,
'数学'
:
100
,
'英语'
:
100
}
goots
=
{
'诺伊'
:
score2
,
'小贝'
:
score3
,
'悟空'
:
score1
,
'哈利波特'
:
score4
}
while
True
:
name
=
input
(
'请输入你的名字,退出请按q:'
)
print
(
'*'
*
30
)
if
name
in
goots
:
info
=
goots
[
name
]
print
(
info
)
print
(
'*'
*
30
)
elif
name
==
'q'
:
print
(
'退出程序'
)
break
else
:
print
(
"查询错误,请重新输入"
)
\ 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