Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_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
aba03c8b
authored
Mar 07, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
16ac0761
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
diy2.py
diy2.py
View file @
aba03c8b
student1
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
city
=
[
'纽约'
,
'华盛顿'
,
'桃园岛'
,
'洛杉矶'
,
'芝加哥'
,
'旧金山'
]
student2
=
{
'语文'
:
1
,
'数学'
:
8
,
'英语'
:
5
}
rais
=
input
(
'你想去哪里啊?'
)
student3
=
{
'语文'
:
9
,
'数学'
:
8
,
'英语'
:
8
}
if
rais
in
city
:
score
=
{
'王一安'
:
student1
,
'坤坤'
:
student2
,
'草子博'
:
student3
}
print
(
"可以乘飞机通往"
+
rais
)
while
True
:
else
:
name
=
input
(
"请问你的名字是:"
)
print
(
"没有"
+
rais
+
"这座城市"
)
if
name
in
score
:
\ No newline at end of file
print
(
"-"
*
30
)
for
k
,
v
in
score
[
name
]
.
items
():
print
(
k
,
v
)
print
(
"-"
*
30
)
elif
name
==
'q'
:
break
else
:
print
(
"去你妈的冬瓜"
)
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