0

Raw string don't escape anything

I don't also understand what raw string is different from normal string. "Raw strings don't escape anything" what does it mean? Please explain more in detail. Thanks.

4th May 2017, 3:48 AM
Hoai Cong Anh
Hoai Cong Anh - avatar
3 odpowiedzi
0
There are tokens like \n for new line. These are called escape sequences and do not work in raw strings.
4th May 2017, 5:02 AM
1of3
1of3 - avatar
0
# run these in the code playground for an example of the difference # raw strings give you a literal representation of the characters print("here there are \n two lines") print(r"here there are \n two lines")
4th May 2017, 7:09 AM
richard
0
Thank you very much!
4th May 2017, 7:56 AM
Hoai Cong Anh
Hoai Cong Anh - avatar