python多進程實現共享變量

from multiprocessing import Process, Queue, Manager def deal_data(): with lock: dictValues['num'] -= 1 print dictValues['num'] if __name__ == '__main__': dictValues = Manag
相關文章
相關標籤/搜索