Commit 886a5c24 by BellCodeEditor

save project

parent 94328b94
Showing with 17 additions and 7 deletions
def f():
toal = []
while True:
\ No newline at end of file
def f(): def f():
toal = [] toal = []
while True: while True:
unit = input("输入:") unit = int (input("输入价格"))
if unit == 'q': except:
break if(unit == 'q'):
exit()
else: else:
toal.append(unit) print("输入错误")
else:
toal.append(unit)
f()
print(toal)
f() \ 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