/images/avatar.png

python项目依赖管理

背景 python包管理是一个非常抽象的问题,尤其是设计cuda登显卡环境的时候更加如此。 cu的问题我解决不了,但是普通工程的依赖问题需要解决

python协程

python协程 语法 定义协程 协程是使用 async def 关键字定义的函数。协程可以在执行过程中暂停,并在稍后继续执行。 1 2 3 4 5 6 import asyncio async def my_coroutine(): print("Hello") await asyncio.sleep(1) print("World") 运行协