Commit fc641d88 by BellCodeEditor

save project

parent 68d7d5eb
Showing with 8 additions and 6 deletions
......@@ -10,8 +10,11 @@ def new_input():
print("请输入一个数字")
else:
total.append(unit)
print(total)
new_input()
`
\ No newline at end of file
return total
def func(data):
sum1=0
for i in data:
sum1+=i
return sum1
data=new_input()
print(func(data))
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