Commit d883dc75 by BellCodeEditor

save project

parent 8bc98adc
Showing with 18 additions and 0 deletions
def yuyubb():
toled=[]
while True:
yu=input("亲,请输入价格~")
if yu=='q':
break
else:
try:
yu=int(yu)
except:
print("亲,请输入整数哦~")
else:
toled.append(yu)
finally:
print("-"*30)
print(toled)
yuyubb()
\ 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