- FileNotFoundError: 文件不存在或路径错误导致无法找到文件。
- PermissionError: 没有权限访问文件或目录。
- IsADirectoryError: 期望文件,但给定的路径代表一个目录。
- NotADirectoryError: 期望目录,但给定的路径代表一个文件。
- FileNotFoundError: [Errno 2] No such file or directory: ‘xxx’: 找不到指定的文件或目录。
- OSError: [Errno 13] Permission denied: 拒绝访问文件或目录。
- ValueError: invalid mode: ‘r+’: 无效的文件打开模式。
- TypeError: expected str, bytes or os.PathLike object, not int: 传入的路径类型错误。
- FileExistsError: [Errno 17] File exists: ‘xxx’: 创建已存在的文件。
- RuntimeError: maximum recursion depth exceeded: 递归深度超过最大值。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>