Commit 0eee58ad by BellCodeEditor

auto save

parent 4cac003e
Showing with 30 additions and 3 deletions
try:
age=int(input("你今年几岁了"))
except:
print("ysrzsa")
else:
if age<18
print("bkyhejiu")
print("syjs")
\ No newline at end of file
neme=input("输入名字")
print(neme+"你好啊") def a():
\ No newline at end of file total=[]
while True:
unit =input("请输入")
if unit =="q":
break
else:
try:
age=int(unit)
except:
print("请输入数字")
else:
total.append(unit)
return total
print(total)
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