+ 1
What's raw string?
I don't get it,. what's the meaning of adding r. thx!
2 odpowiedzi
+ 1
raw strings ignore escape sequences. if you run:
print('test\ntest')
print(r'test\ntest')
you will see that the first statement prints two lines and the second one only one since new line is treated as normal characters in raw string
0
@RedAnt clear thanks!