python import asyncio import aiofiles async def read_file(file_path): async with aiofiles.open(file_path, mode='r') as file: contents = await file.read() print(contents) async def main(): if __name__ == '__main__': loop = asyncio.get_event_loop() loop.run_until_complete(main())


上一篇:
下一篇:
切换中文