摘要:
# 生产者消费模型import reimport time def eat(): def producer(): # 生产 bun = [] for i in range(11): bun.append(i) time.sleep(1) print(time.asctime(time.localti 阅读全文
posted @ 2021-05-26 19:46
关于段主任的一切
阅读(112)
评论(0)
推荐(0)
摘要:
# 迭代器和生成器from typing import List l: List[int] = [1, 2, 3]# for循环"""for i in l: # l.__iter__() /l.__iter__.__next__() print(i)""" # while循环"""index = 0 阅读全文
posted @ 2021-05-26 19:43
关于段主任的一切
阅读(62)
评论(0)
推荐(0)

浙公网安备 33010602011771号