Commit 52d266bc by BellCodeEditor

save project

parent 2eb9b296
Showing with 9 additions and 3 deletions
......@@ -10,5 +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))
\ 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