摘要: 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 听见时间 阅读(93) 评论(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 听见时间 阅读(36) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-07 20:45 听见时间 阅读(37) 评论(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 听见时间 阅读(436) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-13 13:03 听见时间 阅读(44) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-13 12:22 听见时间 阅读(84) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-13 11:43 听见时间 阅读(10) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-12 10:59 听见时间 阅读(28) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-11 18:25 听见时间 阅读(30) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-05-11 17:28 听见时间 阅读(29) 评论(1) 推荐(0)