backslash in Python | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

backslash in Python

In the string "C:\Users\Eric\Desktop\beeline.txt" , how can we duplicate all backslashes ?

6th Jun 2019, 3:49 PM
harshit
harshit - avatar
3 Respostas
+ 1
Thanks
6th Jun 2019, 4:09 PM
harshit
harshit - avatar
0
~ swim ~ I am referring to this article https://stackoverflow.com/questions/1347791/unicode-error-unicodeescape-codec-cant-decode-bytes-cannot-open-text-file I know about raw string but is duplicate backslashes?
6th Jun 2019, 4:04 PM
harshit
harshit - avatar
0
~ swim ~ Actually I don't have any idea about File Handling so I thought it might be a common topic
6th Jun 2019, 4:08 PM
harshit
harshit - avatar