题解 | #牛客网的日常#
牛客网的日常
https://www.nowcoder.com/practice/6d30cd2afd9e40938ed8062c4884ff9e
a=list(input().split())#输入一行数据有间隔 for i in range(0,len(a),5):#注意使用的i是索引,range函数进行有间隔的遍历 print(a[i])#输出的是列表的数据而不是索引,写成print(i)就不对了
牛客网的日常
https://www.nowcoder.com/practice/6d30cd2afd9e40938ed8062c4884ff9e
a=list(input().split())#输入一行数据有间隔 for i in range(0,len(a),5):#注意使用的i是索引,range函数进行有间隔的遍历 print(a[i])#输出的是列表的数据而不是索引,写成print(i)就不对了
相关推荐