线程,进程,协程面试知识点
摘要:
2. threading.local的作用? import threading # 创建全局ThreadLocal对象: localVal = threading.local() localVal.val = "Main-Thread" def process_student(): print( '%s (in %s)' % (localVal.val, threading.current_thr 阅读全文
posted @ 2019-08-21 22:00 michael-chang 阅读(607) 评论(0) 推荐(0)
浙公网安备 33010602011771号