Commit c7f13945 by BellCodeEditor

save project

parent 71b01d69
Showing with 11 additions and 11 deletions
while True: def result():
years=input("How old are you?\n") x=int(input("x"))
try: y=int(input("y"))
if int(years)<=18: print("return前")
print("未成年人禁止吸烟喝酒") a=x+y
else: return(a)
print("你已成年") b=x*y
except: print("return后")
print("输入错误") a = result()
continue print(a)
\ No newline at end of file \ 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