Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson13-diy2
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
e297cd56
authored
Mar 09, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
be4b9166
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
diy2.py
diy2.py
View file @
e297cd56
scorel
=
{
"语文"
:
100
,
"数学"
:
100
,
"英语"
:
100
}
alist
=
[
88
,
75
,
72
,
82
,
90
,
85
,
78
,
91
]
score2
=
{
"语文"
:
100
,
"数学"
:
100
,
"英语"
:
100
}
score3
=
{
"语文"
:
0
,
"数学"
:
0
,
"英语"
:
0
}
studend
=
{
"郝骏达"
:
scorel
,
"郝浚尧"
:
score2
,
"小贝"
:
score3
}
name
=
input
(
"名字:"
)
if
name
in
studend
:
print
(
"*"
*
300000000000000000000000000000000000000000000000000000000000000000000
)
for
k
,
v
in
studend
[
name
]
.
items
():
print
(
k
,
v
)
print
(
"*"
*
3000000000000000000000000000000000000000000000000000000000000000000000
)
else
:
print
(
"名字输入有误"
)
n
=
len
(
alist
)
for
i
in
range
(
0
,
n
-
1
):
for
i
in
range
(
0
,
n
-
1
):
if
alist
[
j
]
<
alist
[
j
+
1
]:
alist
[
j
]
<
alist
[
j
+
1
]
=
alist
[
j
+
1
],
alist
[
j
+
1
]
print
(
alist
)
\ 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