(十八)Flask之threaing.local()对象

0、引子:

  • 如下是一段很基础的多线程代码:
from threading import Thread

demo = 0


def task(arg):
    global demo
    demo = arg
    print(demo)


for i in range(10)

你可能感兴趣的:(Flask框架从入门到实战,flask,python,后端,threading,local)