题解 | 单词造句
单词造句
https://www.nowcoder.com/practice/c0c7fa7523ea4651bd56b6cbc8c65c66
temp = input().strip()
ans = []
while temp != "0": # 确保是字符串 "0"
ans.append(temp)
temp = input().strip() # 循环末尾再次读取
print(" ".join(ans))
单词造句
https://www.nowcoder.com/practice/c0c7fa7523ea4651bd56b6cbc8c65c66
temp = input().strip()
ans = []
while temp != "0": # 确保是字符串 "0"
ans.append(temp)
temp = input().strip() # 循环末尾再次读取
print(" ".join(ans))
相关推荐