摘要: 有两个数组a和b, 有两个线程分别读取数组a和数组b,线程1循环打印数组a中的数字,线程2循环打印数组b中的数,要求交叉,要求第一个数组先输出。 import threading #method1:协程 def sol(strs): for s in strs: res = yield s prin 阅读全文
posted @ 2020-09-03 11:06 LinBupt 阅读(233) 评论(0) 推荐(0) 编辑