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
e6bb9bb4
authored
Sep 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
13b0f81a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
a.py
diy2.py
a.py
0 → 100644
View file @
e6bb9bb4
a
=
[
'纽约'
,
'华盛顿'
,
'旧金山'
]
kimjk
=
input
(
'你想去哪里?'
)
if
kimjk
in
city
:
print
(
"你可以乘坐飞机前往"
+
kimjk
)
else
:
print
(
'没有'
+
kimjk
+
'这座城市'
)
\ No newline at end of file
diy2.py
deleted
100644 → 0
View file @
13b0f81a
a
=
{
"语文"
:
98
,
"数学"
:
91
,
"英语"
:
89
}
b
=
{
"语文"
:
81
,
"数学"
:
80
,
"英语"
:
80
}
c
=
{
"语文"
:
91
,
"数学"
:
92
,
"英语"
:
84
}
score
=
{
'悟空'
:
a
,
'诺一'
:
b
,
'小贝'
:
c
}
while
True
:
name
=
input
(
"名字:"
)
if
name
in
score
:
for
k
,
v
in
score
[
name
]
.
items
():
print
(
k
,
v
)
elif
name
==
"q"
:
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