Commit d5814b9d by BellCodeEditor

save project

parent 05e7d622
def func():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
break
else:
total.append(unit)
return total
def fund(t):
a=0
for i in t:
a=a+i
return a
import func
import func
t1=func.func()
print(t1)
print(func.fund(t1))
\ 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