gpt4 book ai didi

python - 在 afp volume buggy 上使用 python 创建和写入文件

转载 作者:太空宇宙 更新时间:2023-11-04 11:02:14 25 4
gpt4 key购买 nike

使用 python (2.7.3) 在挂载的 afp 卷上写入是否存在已知问题?

>f = open("/mnt/foo/test.txt","w+");

这导致

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 5] Input/output error: '/mnt/foo/test.txt'

python 创建文件,但我无法使用文件对象。当我尝试与以前相同但使用现有文件时,一切正常,没有错误。

最佳答案

请检查/mnt/foo/test.txt文件的权限。这将解决问题。

关于python - 在 afp volume buggy 上使用 python 创建和写入文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26525719/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com