标签:code imp from port his async 异步 import sni
嗅探python用了哪个异步库
from sniffio import current_async_library
import trio
import asyncio
async def print_library():
library = current_async_library()
print("This is:", library)
# Prints "This is trio"
trio.run(print_library)
# Prints "This is asyncio"
asyncio.run(print_library())
标签:code imp from port his async 异步 import sni
原文地址:https://www.cnblogs.com/c-x-a/p/10216859.html