python threading.local

mydata = threading.local()
mydata.x = 1
type(mydata)
<class '_thread._local'>

参考:
https://my.oschina.net/lionets/blog/194577

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页