摘要: import asyncioasync def f1(): print(1) await asyncio.sleep(2) print(2)async def f2(): print(3) await asyncio.sleep(2) print(4) tasks=[ asyncio.ensure_ 阅读全文
posted @ 2023-03-10 17:41 听见时间 阅读(87) 评论(0) 推荐(0)
摘要: import asyncio@asyncio.coroutinedef f1(): print(1) yield from asyncio.sleep(2) print(2)@asyncio.coroutinedef f2(): print(3) yield from asyncio.sleep(2 阅读全文
posted @ 2023-03-09 18:20 听见时间 阅读(29) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-07 20:45 听见时间 阅读(34) 评论(0) 推荐(0)
摘要: #二维飞机小游戏import pygameimport sysimport timefrom pygame.locals import * #*代表所有,检测事件#创建窗口screen=pygame.display.set_mode((640,632))#读取图片img1=pygame.image. 阅读全文
posted @ 2022-05-16 20:31 听见时间 阅读(419) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-13 13:03 听见时间 阅读(43) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-13 12:22 听见时间 阅读(83) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-13 11:43 听见时间 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-12 10:59 听见时间 阅读(26) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-11 18:25 听见时间 阅读(28) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-11 17:28 听见时间 阅读(20) 评论(1) 推荐(0)