Can I create a shared multiarray or lists of lists object in python for multiprocessing?

后端 未结 2 834
独厮守ぢ
独厮守ぢ 2020-12-13 01:04

I need to make a shared object of a multidimensional array or list of lists for it to be available to the other processes. Is there a way to create it as for what i have see

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 01:42

    Why not create a list of Arrays?

     arrays = [Array('i', range(10))] * 10
    

提交回复
热议问题