定义接收变量与列表变量,在接收输入的同时,将字符串按照空格进行分割
name = input().split(" ")
name_list = list()
利用for循环将接收到的字符串写入空列表并打印
for i in name:
name_list.append(i)
print(name_list)

name = input().split(" ")
name_list = list()
for i in name:
name_list.append(i)
print(name_list)