it = 5*input()
while True:
s = input('?')
if len(s)>1:
break
print(s)
for x in s:
print(x)
你代码逻辑进不过去啊,第一行的输入没有到
改为以上你看如何?每次只能接受一个字符,空+回车退出循环,最后遍历输出符合要求的输入内容:
it = []
while True:
s = input('?')
if len(s)>1:
continue
if len(s)<1:
break
it.append(s)
for x in it:
print(x)
while True:
s = input('?')
if len(s)>1:
break
print(s)
for x in s:
print(x)