Commit d4904277 by BellCodeEditor

save project

parent ae893bbd
a=[]
a=[]
......@@ -5,4 +5,4 @@ while True:
break
else:
a.append(b)
print(a)
\ No newline at end of file
print(a)
\ 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=[]
while True:
b=input("请输入菜的价格:")
if b=='q':
break
try:
b=input("请输入菜品价格:")
if b=='q':
break
b=int(b)
except:
print("请输入数字:")
else:
a.append(b)
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