#实现回车换行,而不是结束endstr="end"#重新定义结束符str="" for line in iter(input,endstr):#每行接收的东西 str+= line+"\n"#换行print(str)