def skr(): t0tal = [] while true; try: unit= input("请输入:")) except: print('数字') if unit== '-1': break else: total.append(unit) print(total) skr()