def new_input(): total = [] while True: unit= input("请输入:") if unit== 'q': break else: try: a = int(unit) except: print("NI MUI DE") else: total.append(unit) print(totait)l)