Commit 39905e09 by BellCodeEditor

save project

parent 5472e2c9
Showing with 15 additions and 5 deletions
...@@ -11,8 +11,17 @@ def new_input(): ...@@ -11,8 +11,17 @@ def new_input():
print("请输入数字!") print("请输入数字!")
else: else:
total.append(unit) total.append(unit)
print(total)
return(total) return total
new_input()
result=new_input() def func(data):
print(result) count=0
for i in data:
count=count+i
return count
a=func(new_input())
print(a)
# result=new_input()
# print(result)
\ 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