题解 | #增加派对名单(一)#
增加派对名单(一)
https://www.nowcoder.com/practice/d3d9737be17d44a7919e3a03e8087270
list1= input().split(" ")
list1.append('Allen')
print(list1)
设变量list1,然后将split对输入的进行分割并添加上""
然后增加allen在liest1
最后打印,就出来了
增加派对名单(一)
https://www.nowcoder.com/practice/d3d9737be17d44a7919e3a03e8087270
list1= input().split(" ")
list1.append('Allen')
print(list1)
设变量list1,然后将split对输入的进行分割并添加上""
然后增加allen在liest1
最后打印,就出来了
相关推荐