Commit e0ee1bae by BellCodeEditor

save project

parent 5e14d4f3
Showing with 16 additions and 3 deletions
try:
age=int(input('输个数'))
except:
print('输整数')
else:
if age<18:
print('未成年')
print('结束')
\ No newline at end of file
def d():
sb=[]
while True:
unit=input('q s r :')
unit=input('输个数 :')
if unit=='q':
break
else:
sb.append(unit)
try :
unit=int(unit)
except:
print('输整数')
else:
sb.append(unit)
print(sb)
d()
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