Commit c5c28aa1 by BellCodeEditor

auto save

parent 7eaed43a
Showing with 14 additions and 0 deletions
list=[]
while True:
unnit=input("请输入价格:")
if unnit=='q':
break
else:
try:
unnit=int(unnit)
except:
print("请输入整数!")
else:
list.append(unnit)
print(list)
\ 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