i=1 while i<5: try: inpt= (input("请输入一个整数:")) num =int(inpt) i=5 except ValueError: print("",end="") finally: print(i) i=i+1