题解 | #增加派对名单(一)#
增加派对名单(一)
https://www.nowcoder.com/practice/d3d9737be17d44a7919e3a03e8087270
# 接收驼瑞驰输入的内容 name_list = input("") # 将驼瑞驰输入的内容以空格分割,分割为列表 name_list = name_list.split() # 在列表后使用append()函数追加 Allen 属性 name_list.append("Allen") print(name_list)