Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-5_DIY1
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
2afa96d1
authored
Jan 29, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
56bfefd7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
22 deletions
加法运算.py
发过的.py
词汇.py
加法运算.py
View file @
2afa96d1
A
=
int
(
input
(
"请输入学生人数:"
))
A
=
int
(
input
(
"请输入学生人数:"
))
A
=
int
(
input
(
"请输入学生人数:"
))
A
=
int
(
input
(
"请输入学生人数:"
))
B
=
0
for
i
in
range
(
A
):
B
=
B
+
int
(
input
(
"学生成绩:"
))
print
(
"班级总成绩"
,
B
)
print
(
"平均成绩"
,
B
/
A
)
A
=
int
(
input
(
"请输入学生人数:"
))
B
=
[]
B
=
[]
for
i
in
range
(
A
):
for
i
in
range
(
A
):
C
=
int
(
input
(
"学生人数"
+
str
(
i
+
1
)
+
"成绩
"
))
B
=
int
(
input
(
"学生成绩:
"
))
B
.
append
(
C
)
B
.
append
(
C
)
print
(
B
)
print
(
B
)
D
=
0
top1
=
0
for
i
in
B
:
for
i
in
B
:
D
=
D
+
i
if
top1
<
i
:
print
(
D
)
top1
=
i
E
=
D
/
A
print
(
top1
)
print
(
E
)
\ No newline at end of file
发过的.py
View file @
2afa96d1
-- "a/\345\217\221\350\277\207\347\232\204.py"
A
=
int
(
input
(
"请输入学生人数:"
))
A
=
int
(
input
(
"请输入学生人数:"
))
B
=
[]
for
i
in
range
(
A
):
C
=
int
(
input
(
"学生人数"
+
str
(
i
+
1
)
+
"成绩"
))
B
.
append
(
C
)
print
(
B
)
D
=
0
for
i
in
B
:
D
=
D
+
i
print
(
D
)
E
=
D
/
A
print
(
E
)
\ No newline at end of file
词汇.py
View file @
2afa96d1
weather
=
{
'天津'
:
89
,
'广州'
:
87
,
'山西'
:
90
,
'陕西'
:
98
,
'山东'
:
67
,
'四川'
:
100
}
score
=
{
'语文'
:
89
,
'数学'
:
87
,
'英语'
:
90
,
'政治'
:
98
,
'历史'
:
67
,}
weather
=
{
'天津'
:
89
,
'广州'
:
87
,
'山西'
:
90
,
'陕西'
:
98
,
'山东'
:
67
,
'四川'
:
100
}
score
=
{
'语文'
:
89
,
'数学'
:
87
,
'英语'
:
90
,
'政治'
:
98
,
'历史'
:
67
,}
date
=
weather
.
pop
(
'天津'
)
for
d
,
v
in
score
.
items
():
print
(
date
)
print
(
d
,
v
)
print
(
weather
)
\ No newline at end of file
score
=
{
'语文'
:
89
,
'数学'
:
87
,
'英语'
:
90
,
'政治'
:
98
,
'历史'
:
67
,}
for
k
in
score
.
keys
():
print
(
k
)
score
=
{
'语文'
:
89
,
'数学'
:
87
,
'英语'
:
90
,
'政治'
:
98
,
'历史'
:
67
,}
for
k
in
score
.
values
():
print
(
k
)
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