Commit d4904277 by BellCodeEditor

save project

parent ae893bbd
a=[] a=[]
...@@ -5,4 +5,4 @@ while True: ...@@ -5,4 +5,4 @@ while True:
break break
else: else:
a.append(b) a.append(b)
print(a) print(a)
\ No newline at end of file \ No newline at end of file
-- "a/\347\210\261\345\277\203.py/\347\254\254\345\233\233\351\242\230.py" try:
try:
age=int(input('你今年几岁了?'))
except:
print('要输入整数啊')
else:
if age<18:
print('不可以喝酒嗷')
print('程序结束~~')
\ No newline at end of file
a=[] a=[]
a=[] a=[]
while True: while True:
b=input("请输入菜的价格:") try:
if b=='q': b=input("请输入菜品价格:")
break if b=='q':
break
b=int(b)
except:
print("请输入数字:")
else: else:
a.append(b) a.append(b)
print(a) print(a)
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