Python, what is the most efficient way to add values to a vector at a random indexes?

后端 未结 0 1252
温柔的废话
温柔的废话 2021-02-12 01:48

I am trying to find the best way to execute the following code. in practice i would be adding random values, not adding 1.

from random import randint
from numpy i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题