Commit 2147c00c by BellCodeEditor

save project

parent 470658c7
...@@ -13,8 +13,13 @@ def new_input(): ...@@ -13,8 +13,13 @@ def new_input():
total.append(unit) total.append(unit)
finally: finally:
print("*"*30) print("*"*30)
print(total)
return total return total
def sum(list):
w=new_input() s=0
print(w) for i in list:
\ No newline at end of file s=s+i
return s
# w=new_input()
# print(w)
# e=sum(w)
# print("你花了:",e)
import func
list=func.new_input()
a=func.sum(list)
print(a)
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