Commit 37f5a24b by BellCodeEditor

save project

parent b846bc70
Showing with 17 additions and 0 deletions
def a():
def a():
s=[]
while True:
b=input("请输入物品价格")
if b =="q":
break
else:
try:
b=int(b)
except:
print("请输入整数")
else:
s.append(b)
print(s)
a()
\ 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