Commit f5539207 by BellCodeEditor

auto save

parent 9b7d3c65
...@@ -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)
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment