a=[] while True: try:n=eval(input()) #识别浮点数和整型 except:n=input() if n !=' ': #输入空格终止 a.append(n) else: break print(a)