Commit 9ea72544 by BellCodeEditor

save project

parent e4e1e282
import func
a=func.new_input()
b=func.sum()
print(str(b))
\ No newline at end of file
def a(): def new_input():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
...@@ -23,6 +23,6 @@ def sum(money): ...@@ -23,6 +23,6 @@ def sum(money):
return count return count
price=a() price=new_input()
pay=sum(price) pay=sum(price)
print(str(pay)) #print(str(pay))
\ No newline at end of file \ 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