Escaping Charecters in python

Just an example commonly used
Escaping the "\" with another "\"

>>> with open('C:\\Folder1\\Folder2\\file') as file_handler:
Or just add an "r" before the path (this stands for "raw").

>>> with open(r'C:\Folder1\Folder2\file') as file_handler:


Popular posts from this blog

Como configurar el control de directv para que funcione con el Tv

Install compass in Mac Os El Capitan

Open Source Software for Mac