Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_5
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
ba9063fd
authored
Nov 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c4e697d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
func.py
h.py
func.py
deleted
100644 → 0
View file @
c4e697d8
list
=
[
90
,
98
,
89
,
77
]
def
jisuan
(
a
):
he
=
0
for
i
in
a
:
he
=
he
+
i
return
he
b
=
jisuan
(
list
)
print
(
b
)
\ No newline at end of file
h.py
0 → 100644
View file @
ba9063fd
fen
=
[
92
,
98
,
95
,
99
,
93
,
100
]
a
=
0
for
i
in
range
(
6
):
if
fen
[
i
]
<
fen
[
a
]:
a
=
i
a1
=
str
(
fen
[
a
])
print
(
"去掉一个最低分:"
+
a1
)
b
=
0
for
i
in
range
(
6
):
if
fen
[
i
]
>
fen
[
b
]:
b
=
i
b1
=
str
(
fen
[
b
])
print
(
"去掉一个最高分:"
+
b1
)
c
=
fen
[
a
]
d
=
fen
[
b
]
fen
.
remove
(
c
)
fen
.
remove
(
d
)
e
=
0
for
i
in
range
(
4
):
e
=
e
+
fen
[
i
]
print
(
e
)
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