摘要:
# 使用yield实现单线程并发多个任务 # 引子 : 生成器回顾 # def func1(): # print('1') # yield # print('2') # yield # print('3') # yield # res = func1() # print(res) # # next(res) # 1 # next(res) #... 阅读全文
posted @ 2019-06-08 15:15
挺锅锅
阅读(326)
评论(0)
推荐(0)
摘要:
Queue LifoQueue PriorityQueue 阅读全文
posted @ 2019-06-08 15:07
挺锅锅
阅读(440)
评论(0)
推荐(0)