n = int(input())
while True:
string = input()
if n > 0:
print(string,end='\n\n')
else:
for i in string.split(): # 可以直接这么写我也是没想到
print(i,end='\n\n')
n -= 1
蓝桥杯每日一练——字符串的输入输出处理 python
阅读 55
2022-03-11
n = int(input())
while True:
string = input()
if n > 0:
print(string,end='\n\n')
else:
for i in string.split(): # 可以直接这么写我也是没想到
print(i,end='\n\n')
n -= 1
相关推荐
精彩评论(0)