题解 | #生成列表#
生成列表
https://www.nowcoder.com/practice/349954d559e1494ba5f83e42388ba8ea
# 接收用户输入 namelist = input("") # 使用字符串的split()函数将字符串使用空格分割为数组 namelist = namelist.split(" ") print(namelist)
生成列表
https://www.nowcoder.com/practice/349954d559e1494ba5f83e42388ba8ea
# 接收用户输入 namelist = input("") # 使用字符串的split()函数将字符串使用空格分割为数组 namelist = namelist.split(" ") print(namelist)
相关推荐