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
882bc161
authored
Nov 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e736e9b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
func.py
func.py
View file @
882bc161
...
...
@@ -4,25 +4,26 @@ def new_input():
while
_541881452
>
0
:
SB
=
input
(
"请输入分数:"
)
try
:
unit
=
floa
t
(
SB
)
unit
=
in
t
(
SB
)
except
:
if
SB
==
"q"
:
break
else
:
print
(
"SB,输整数或小数
!
"
)
print
(
"SB,输整数或小数
!
"
)
_541881452
+=
1
else
:
total
.
append
(
unit
)
_541881452
-=
1
_541881452
-=
1
return
total
def
sun
(
_54188
):
_145
2
=
0
for
i
in
_54188
:
_145
2
+=
i
return
_145
2
def
add_DSB
(
kly
):
kly
2
=
0
for
i
in
kly
:
kly
2
+=
i
return
kly
2
gkj
=
new_input
()
kly3
=
sum
(
gkj
)
print
(
kly3
)
\ No newline at end of file
kly3
=
add_DSB
(
gkj
)
print
(
kly3
)
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