Python WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect:

前端 未结 6 488
难免孤独
难免孤独 2020-12-30 22:07

I am new to programming, this is actually my first work assignment with coding. my code below is throwing an error:

WindowsError: [Error 123] The filename,          


        
6条回答
  •  孤城傲影
    2020-12-30 22:19

    I had a similar issue while working with Jupyter. I was trying to copy files from one directory to another using copy function of shutil. The problem was that I had forgotten to import the package.(Silly) But instead of python giving import error, it gave this error.

    Solved by adding:

    from shutil import copy
    

提交回复
热议问题