Python os.chdir is modifying the passed directory name
问题 I am trying to change the current working directory in python using os.chdir. I have the following code: import os os.chdir("C:\Users\Josh\Desktop\20130216") However, when I run it, it seems to change the directory, as it comes out with the following error message: Traceback (most recent call last): File "C:\Users\Josh\Desktop\LapseBot 1.0\LapseBot.py", line 3, in <module> os.chdir("C:\Users\Josh\Desktop\20130216") WindowsError: [Error 2] The system cannot find the file specified 'C:\\Users\