擅长:python、mysql、java
<blockquote>
<p>I don't want to print at the end of every for loop as I want to create a vector of computed values (25 values)</p>
</blockquote>
<p>好吧,那你为什么不这样做(“创建一个计算值向量”)然后???你知道吗</p>
<pre><code>values = []
for i in range(5):
for j in range(5):
values.append((i, j))
print(values)
</code></pre>