update python list of lists on multithreaded

前端 未结 0 869
忘掉有多难
忘掉有多难 2021-01-26 23:38

I have this simple python code:

from threading import Lock, Condition, Thread

n_threads = 5
global_list = [[]]*n_threads

def update_list(t_id, lock):
    global         


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