No such file or directory error

后端 未结 6 1672
有刺的猬
有刺的猬 2021-01-13 13:20

This is the error I am getting:

Traceback (most recent call last):
  File \"E:\\stuff\\module.py\", line 91, in 
    f = open(\'E:/stuff/log.tx         


        
6条回答
  •  囚心锁ツ
    2021-01-13 13:50

    Firstly, from above, Windows supports / just fine.

    Secondly: Well, if you look at your file, you'll notice it's not log.txt, it's log.txt.txt... You may see it as "log.txt" in your graphical folder viewer (as opposed to the CLI "dir" command) simply because it hides the known file extensions.

    I recommend you disable this - see folder options, there should be an option "Hide extensions of known file types" (or similar).

提交回复
热议问题