Commit 6669dc50 by BellCodeEditor

save project

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