Commit 36330b23 by BellCodeEditor

auto save

parent ed94e2ca
Showing with 4 additions and 3 deletions
total = [] total = []
def new_price(a): def new_price(a):
while True: while True:
unit= int(input("请输入:")) unit= input("请输入:")
if unit== 'q': if unit== 'q':
break print("退出")
else: else:
try: try:
a.append(unit) unit=int(unit)
except: except:
print("程序错误") print("程序错误")
break
# print(total) # print(total)
new_price(total) new_price(total)
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