Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
660373aa
authored
Jul 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c7526172
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
__pycache__/func.cpython-37.pyc
func.py
swim.py
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
660373aa
File added
func.py
View file @
660373aa
...
@@ -12,7 +12,7 @@ def new_input():
...
@@ -12,7 +12,7 @@ def new_input():
else
:
else
:
total
.
append
(
unit
)
total
.
append
(
unit
)
print
(
"-"
*
30
)
print
(
"-"
*
30
)
print
(
total
)
#
print(total)
return
total
return
total
def
sum
(
money
):
def
sum
(
money
):
...
@@ -21,6 +21,6 @@ def sum(money):
...
@@ -21,6 +21,6 @@ def sum(money):
count
+=
i
count
+=
i
return
count
return
count
a
=
new_input
()
#a=new_input()
money2
=
sum
(
a
)
#money2=sum(a)
print
(
money2
)
#print(money2)
\ No newline at end of file
\ No newline at end of file
swim.py
0 → 100644
View file @
660373aa
import
func
score
=
func
.
new_input
()
count
=
func
.
sum
(
score
)
print
(
"总分是"
+
str
(
count
))
\ 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