题解 | #牛客网的日常#
牛客网的日常
https://www.nowcoder.com/practice/6d30cd2afd9e40938ed8062c4884ff9e
lst = list(map(str,input().split())) name = lst[::5] for i in name: print(i)
将列表按照步长为5存入新的列表里,然后遍历新的列表
牛客网的日常
https://www.nowcoder.com/practice/6d30cd2afd9e40938ed8062c4884ff9e
lst = list(map(str,input().split())) name = lst[::5] for i in name: print(i)
将列表按照步长为5存入新的列表里,然后遍历新的列表
相关推荐