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
d3f4c127
authored
Jan 23, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
cbb1ab19
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
__pycache__/oo.cpython-37.pyc
jhkj.py
oo.py
__pycache__/oo.cpython-37.pyc
View file @
d3f4c127
No preview for this file type
jhkj.py
View file @
d3f4c127
import
oo
data
=
oo
.
new_input
()
score
=
oo
.
sum
(
data
)
print
(
"总成绩为:"
+
str
(
score
))
\ No newline at end of file
#score=oo.sum(data)
#print("总成绩为:"+str(score))
\ No newline at end of file
oo.py
View file @
d3f4c127
...
...
@@ -18,7 +18,7 @@ def new_input():
def
sum
(
money
):
count
=
0
for
i
in
money
:
count
=
count
+
i
count
=
count
+
return
count
price
=
new_input
()
pay
=
sum
(
price
)
...
...
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