La cartella che voglio raggiungere si chiama python e si trova sul mio desktop.Perché ottengo un SyntaxError per un'uscita Unicode nel mio percorso file?
ricevo il seguente errore quando provo per arrivare ad essa
>>> os.chdir('C:\Users\expoperialed\Desktop\Python')
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Prova 's.chdir (r'C: \ Users \ expoperialed \ Desktop \ Python ')'; leggi: http://docs.python.org/2/reference/lexical_analysis.html#string-literals – NullUserException