Commit 14a21cd0 by BellCodeEditor

save project

parent 30d04029
Showing with 16 additions and 13 deletions
a=[] def new_input():
while True: a=[]
b=input('请输入') while True:
if b == 'q': b=input('请输入')
break if b == 'q':
else: break
try:
b = float(b)
except:
print("重新输入!")
else: else:
a.append(b) try:
print("-"*30) b = float(b)
print(a) except:
print("重新输入!")
else:
a.append(b)
print("-"*30)
return a
c=new_input()
print(c)
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