Permission denied error while writing to a file in Python

后端 未结 9 1881
萌比男神i
萌比男神i 2020-12-17 08:48

I want to create a file and write some integer data to it in python. For example, I have a variable abc = 3 and I am trying to write it to a file (which doesn\'t exist and I

9条回答
  •  半阙折子戏
    2020-12-17 09:18

    Make sure that you have write permissions for that directory you were trying to create file by properties

提交回复
热议问题