摘要: import threading # 创建全局ThreadLocal对象: local_school = threading.local() def process_student(): # 获取当前线程关联的student: std = local_school.student print('Hello, %s (in %s)' % (std, threading.... 阅读全文
posted @ 2018-05-08 08:38 扫驴 阅读(218) 评论(0) 推荐(0) 编辑