题解 | #生成列表#
生成列表
https://www.nowcoder.com/practice/349954d559e1494ba5f83e42388ba8ea
str = input() list = str.strip().split(" ") #去除空格开头结尾,list直接打印就可以符合格式,需要那么多操作吗?我是菜鸟不懂 print(list)
生成列表
https://www.nowcoder.com/practice/349954d559e1494ba5f83e42388ba8ea
str = input() list = str.strip().split(" ") #去除空格开头结尾,list直接打印就可以符合格式,需要那么多操作吗?我是菜鸟不懂 print(list)
相关推荐