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.
3 Respuestas
0
There are tokens like \n for new line. These are called escape sequences and do not work in raw strings.
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")
0
Thank you very much!