Commit 6669dc50 by BellCodeEditor

save project

parent 1e0d9325
Showing with 17 additions and 6 deletions
try: a=[]
age = int(input('你今年多大了?')) while True:
except: b=input('请输入')
print('要输入整数啊!') if b == 'q':
print('结束!') break
\ No newline at end of file else:
try:
b = float(b)
except:
print("重新输入!")
else:
a.append(b)
print("-"*30)
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