循环获得数据,最后打印,知道很简单,大概思路也知道,就是感觉写不出来,求大家帮帮忙
obb=""
loop_out=1
while loop_out:
obb+=input("请输入数据:")
while 1:
choose=input("是否继续输入?(y/n)")
if choose!="y" and choose!="n":
print("您的输入有误,请重新输入!")
continue
if choose=="y":
break
else:
loop_out=0
break
print("最终数据:"+obb)