+ 1
Can you tell me pls whats this code
Print(r\n"hello")
4 Antworten
+ 6
Its attempting to print a "raw string"
Thats just any string ('this is a string') with "r" in front. So :
rstring = r'this is a raw string'
What that does is print exactly whats in the string EVEN if its an escape character (\n, \t, \\, ect)
So...
a = r'\nThis is a\nraw string'
print(a)
IT WONT BE:
This is a
raw string
It will be:
\nThis is a\nraw string
0
Maybe I thought that this character \ is show orginal for """" quates
0
What exactly do you mean by that?
- 1
It prints simple text