asyncio 是否支持文件操作的异步 I/O? [英] Does asyncio supports asynchronous I/O for file operations?

查看:53
本文介绍了asyncio 是否支持文件操作的异步 I/O?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asyncio 是否支持文件操作的异步 I/O?如果是,我如何在带有 async/await 语法代码的 Python 3.5 中使用它?

Does asyncio supports asynchronous I/O for file operations? If yes, how I can use this in Python 3.5 with async/await syntax code?

推荐答案

大多数操作系统不支持异步文件操作.这就是 asyncio 也不支持它们的原因.

Most operating systems don't support asynchronous file operations. That's why asyncio doesn't support them either.

请参阅 asyncio wiki 以获取进一步说明.

See the asyncio wiki for further explanation.

这篇关于asyncio 是否支持文件操作的异步 I/O?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆