simple0X

导航

 

2022年7月26日

摘要: python解决多线程输出混乱 定义一个加锁print() _print = print mutex = threading.Lock() def print(text, *args, **kw): with mutex: _print(text, *args, **kw) 示例 import qu 阅读全文
posted @ 2022-07-26 19:33 simple0X 阅读(929) 评论(0) 推荐(0) 编辑