Commit dfe6d911 by BellCodeEditor

save project

parent 50e57183
Showing with 2 additions and 2 deletions
...@@ -5,11 +5,11 @@ while True: ...@@ -5,11 +5,11 @@ while True:
break break
else: else:
try: try:
unit = int(unit) money=int(money)
except: except:
print("请重新输入一个数字") print("请重新输入一个数字")
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