我的“原因”是什么

2024-05-15 13:43:04 发布

您现在位置:Python中文网/ 问答频道 /正文

从Python文档

exception IOError

Raised when an I/O operation (such as a print statement, the built-in open() function or a method of a file object) fails for an
I/O-related reason, e.g., “file not found” or “disk full”.

互联网上似乎没有列举原因的记录。在

IOErrors似乎是一个让io例外的地方,它没有其他地方可以居住。 我很好奇IOErrors的所有原因(至少是所有的常见原因)。在

让我们从访问类似文件的环境(具有文件概念的文件系统)开始 上面有有限的空间(一个硬盘驱动器(磁性介质),容量为10GB)。在

这个问题并不是python特有的,但我需要一个起点。在


Tags: or文件文档anas地方exception原因