Commit 9ee3feca by BellCodeEditor

save project

parent 741dd960
def aaa(): def a():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -12,11 +12,11 @@ def aaa(): ...@@ -12,11 +12,11 @@ def aaa():
else: else:
total.append(unit) total.append(unit)
return total return total
#a=aaa()
def aaaa(a): def b(a):
aaaaa=0 aaaaa=0
for i in a: for i in a:
aaaaa=aaaaa+i aaaaa=aaaaa+i
return aaaaa return aaaaa
#aaaaa=aaaa(a) aaaaa=aaaa(a)
#print(aaaaa) print(aaaaa)
\ No newline at end of file \ No newline at end of file
import func
total=func.a()
count=func.b(total)
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