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
51714b4b
authored
Oct 19, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2ac7fe96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
diy3.py
dvojfdi.py
diy3.py
View file @
51714b4b
student1
=
{
'语文'
:
66.6
,
'数学'
:
66.6
,
'英语'
:
66.6
}
student2
=
{
'语文'
:
100
,
'数学'
:
100
,
'英语'
:
100
}
student3
=
{
'语文'
:
-
100
,
'数学'
:
-
100
,
'英语'
:
-
100
}
sco
=
{
'作业不全帮'
:
student1
,
'作业帮'
:
student2
,
'作业SB帮'
:
student3
,
}
student1
=
{
'语文'
:
100
,
'数学'
:
100
,
'英语'
:
100
}
student2
=
{
'语文'
:
66.6
,
'数学'
:
66.6
,
'英语'
:
66.6
}
student3
=
{
'语文'
:
-
100
,
'数学'
:
-
100
,
'英语'
:
-
100
}
sco
=
{
'作业帮'
:
student1
,
'作业不全帮'
:
student2
,
'作业SB帮'
:
student3
}
name
=
input
(
"帮派:"
)
print
(
"*"
*
30
)
if
name
in
sco
:
sco
=
sco
[
name
]
for
k
,
v
in
sco
.
items
()
:
for
k
,
v
in
sco
:
print
(
k
,
v
)
print
(
"*"
*
30
)
else
:
print
(
'尼玛想象力真丰富,重新输!'
)
\ No newline at end of file
print
(
"尼玛想象力太丰富了,重新输!"
)
\ No newline at end of file
dvojfdi.py
0 → 100644
View file @
51714b4b
a_sb
=
{
'a'
:
1
,
'b'
:
2
,
'c'
:
3
,
'd'
:
4
}
for
i
in
\ 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