Numpy repeat random choice

前端 未结 0 891

Imagine a 2D Boolean field. Suppose it is a a x b = 3x3 field

F= [[0 1 0] [0 1 0] [1 1 1]]

without_zeros(range(9)*F) = (1 4 6 7 8 ) thi

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