Commit 147e0796 by BellCodeEditor

auto save

parent c4e019cf
Showing with 10 additions and 5 deletions
del new_input(): del new_input(j):
total = [] total = []
while: while:
c=int(input("请输入价格")) c=int(input("请输入价格"))
if c=="p": if c=="p":
break break
else: else:
total.append(c) try:
j=0 int(c)
except:
print("请输入数字噢")
elif:
total.append(c)
j=0
for i in total: for i in total:
total=j+i total=j+i
j=return total() j=return total()
print(j) print(j)
new_input() new_input('一共支付'+j+'元!请问是扫码还是现金呢')
\ 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