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():
toal = []
while True:
unit = input("输入:")
if unit == 'q':
break
unit = int (input("输入价格"))
except:
if(unit == 'q'):
exit()
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