Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_4
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
fd130597
authored
Nov 18, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
894ccfd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
dvojfdi.py
yys.py
dvojfdi.py
View file @
fd130597
...
@@ -10,6 +10,7 @@ while True :
...
@@ -10,6 +10,7 @@ while True :
print
(
'*'
*
30
)
print
(
'*'
*
30
)
for
k
,
v
in
a
.
items
():
for
k
,
v
in
a
.
items
():
print
(
k
,
v
)
print
(
k
,
v
)
print
(
'*'
*
30
)
break
break
else
:
else
:
print
(
'输入错误'
)
print
(
'输入错误'
)
\ No newline at end of file
yys.py
0 → 100644
View file @
fd130597
student1
=
{
'攻击'
:
91
,
'速度'
:
88
,
'钱'
:
85
}
student2
=
{
'攻击'
:
97
,
'速度'
:
98
,
'钱'
:
90
}
student3
=
{
'攻击'
:
95
,
'速度'
:
100
,
'钱'
:
93
}
student4
=
{
'攻击'
:
60
,
'速度'
:
60
,
'钱'
:
60
}
while
True
:
name
=
input
(
"名字"
)
if
name
in
score
:
a
=
score
[
name
]
print
(
'*'
*
30
)
for
k
,
v
in
a
.
items
():
print
(
k
,
v
)
print
(
'*'
*
30
)
break
else
:
print
(
'输入错误'
)
score
=
{
"米国队长"
:
student2
,
"铁锅侠"
student1
:}
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