c=input()while c!= -1:c.split()lst1.append(c)c=input()我用这个输入-1怎么结束不了?
接收键盘输入的-1是str类型,需要强制转化为int类型c=int(input())