Commit 8371ef10 by BellCodeEditor

save project

parent c5597553
Showing with 3 additions and 3 deletions
...@@ -2,16 +2,16 @@ def price(): ...@@ -2,16 +2,16 @@ def price():
total = [] total = []
while True: while True:
try: try:
unit= input("请输入:") money= input("请输入:")
if unit== 'q': if unit== 'q':
break break
else: else:
try: try:
unit=int(unit) money=int(unit)
except: except:
print("ersgstrgtgsgrstgsretgstr") print("ersgstrgtgsgrstgsretgstr")
else: else:
total.append(unit) total.append(money)
print("-"*30) print("-"*30)
return total return total
result = new_input() result = new_input()
......
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