Commit a52e3606 by BellCodeEditor

save project

parent 967eb0dd
Showing with 5 additions and 5 deletions
...@@ -12,7 +12,8 @@ def new_input(): ...@@ -12,7 +12,8 @@ def new_input():
print('请输入一个整数') print('请输入一个整数')
else: else:
total.append(unit) total.append(unit)
print('...'*30) finally:
print('****************')
return total return total
...@@ -22,8 +23,7 @@ def sum(money): ...@@ -22,8 +23,7 @@ def sum(money):
for i in money: for i in money:
count=count+i count=count+i
return count return count
price=new_input() #price=new_input()
pay=sum(price) #pay=sum(price)
#print("您一共消费"+str(pay)+"元!扫码还是现金?") #print("您一共消费"+str(pay)+"元!扫码还是现金?")
add=new_input()
print(add)
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