题解 | #牛客网的日常#
牛客网的日常
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存入新的列表里,然后遍历新的列表
相关推荐
心碎一号线:我要是9✌🏻我就选保研,保研了大四再找实习,实习之后,如果觉得自己不适合互联网工作模式,还能有其他选择,如果实习后决定了走互联网,也能提升学历提高竞争力