Commit fc641d88 by BellCodeEditor

save project

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