Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_1
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
f5539207
authored
Aug 14, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
9b7d3c65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
__pycache__/func.cpython-37.pyc
func.py
pjf.py
__pycache__/func.cpython-37.pyc
0 → 100644
View file @
f5539207
File added
func.py
View file @
f5539207
...
@@ -14,14 +14,14 @@ def A_list():
...
@@ -14,14 +14,14 @@ def A_list():
print
(
'-'
*
30
)
print
(
'-'
*
30
)
return
total
return
total
def
sum
(
a
):
def
sum
(
a
):
b
=
0
count
=
0
for
i
in
a
:
for
i
in
count
:
b
=
b
+
i
count
=
count
+
i
return
b
return
count
B_list
=
A_list
()
#
B_list=A_list()
print
(
B_list
)
#
print(B_list)
...
...
pjf.py
View file @
f5539207
import
func
import
func
\ No newline at end of file
chengji
=
func
.
A_list
()
zongchengji
=
func
.
sum
(
chengji
)
print
(
'选手的总分是'
+
str
(
zongchengji
))
\ 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