Can I edit global variables inside 1 function and have it affect the 2nd function

前端 未结 0 1885
暗喜
暗喜 2020-11-22 13:32

I\'m trying to multiple functions edit the same variable with threads, my code looks like this

from threading import Thread
import time

global x
x =  False

         


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