Errno 13 Permission denied Python

前端 未结 1 880
醉酒成梦
醉酒成梦 2021-02-13 09:42

In python, I am currently experimenting with what I can do with open command. I tried to open a file, and got an error message. Here\'s my code:

ope         


        
1条回答
  •  春和景丽
    2021-02-13 09:55

    Your user don't have the right permissions to read the file, since you used open() without specifying a mode.

    Since you're using Windows, you should read a little more about File and Folder Permissions.

    Also, if you want to play with your file permissions, you should right-click it, choose Properties and select Security tab.

    Or if you want to be a little more hardcore, you can run your script as admin.

    SO Related Questions:

    • Example1

    0 讨论(0)
提交回复
热议问题