题解 | #单词造句#
单词造句
https://www.nowcoder.com/practice/c0c7fa7523ea4651bd56b6cbc8c65c66
str1 = " " s = [] while True: x = input() if x == "0": break s.append(x) //用列表把输入的字符串分段放入列表 print(str1.join(s)) //用str1(空格)把列表连接起来
单词造句
https://www.nowcoder.com/practice/c0c7fa7523ea4651bd56b6cbc8c65c66
str1 = " " s = [] while True: x = input() if x == "0": break s.append(x) //用列表把输入的字符串分段放入列表 print(str1.join(s)) //用str1(空格)把列表连接起来
相关推荐