Wednesday, 26 September 2018

Why do backslashes appear twice?

When I create a string containing backslashes, they get duplicated:

>>> my_string = "why\does\it\happen?"
>>> my_string
'why\\does\\it\\happen?'

Why?



from Why do backslashes appear twice?

No comments:

Post a Comment