Python
smj-sunny
这个作者很懒,什么都没留下…
展开
-
python多线程生产者消费者模型
最近写了生产者消费者实现的六种途径,可能有些地方不合适。 方法1: #!/usr/bin/python2 #coding: UTF-8 ''' 函数式 threading标准库 lock ''' import time import threading def consumer(name): global q while True: lock.acquire...原创 2019-07-18 17:42:50 · 232 阅读 · 0 评论 -
更改Linux系统默认python版本
https://blog.csdn.net/romance5201314/article/details/81667778原创 2019-07-12 16:32:47 · 343 阅读 · 0 评论