No such file or directory error

后端 未结 6 1678
有刺的猬
有刺的猬 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:58

    Since it is windows, and the backslash is a escape character, you must double the backslash to escape it. Try

    e:\\stuff\\log.txt
    

提交回复
热议问题