Commit fba0dd79 by BellCodeEditor

auto save

parent 05e7d622
try:
age=int(input('你今年几岁了'))
except:
print('错误')
else:
if age < 18:
print("不可以喝酒哦")
print("程序结束")
def add():
x=5
y=9
print('前')
return x
print('后')
z=x+y
result=add()
print(result)
\ No newline at end of file
def new_input():
total=[]
while True:
a = input('')
if a =='q':
break
else:
try:
b=int(a)
except:
print('错误')
else:
total.append(b)
finally:
print('=================================================================')
return count
\ No newline at end of file
++ "b/\345\245\275\345\245\263\345\255\251v\345\220\247\351\243\216\346\240\274\346\201\242\345\244\215.py"
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