Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

python - Creating a loop moving by 10

I'm trying to create two for loops, the first one (k) moving by a window of 10 e.g., (1,10,20,..,90) until 90. and the second one (l) in range (1,100). I have a problem defining the loop k. here is what I tried, but this is not what I need for the loop (k)

X_train = np.row_stack([values[k][l] for k in range(1,100) for l in range(1, 100)])

thanks in advance.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...