In Python, posso prefisso un r ad una stringa letterale (stringa crudo) per raccontare l'interprete non traduce i caratteri speciali nella stringa: >>> r"abc\nsdf#$%\^"
r"abc\nsdf#$%\^"
C'è un modo
Il seguente programma non viene compilato: #include <iostream>
int main() {
std::cout << R"RAW_STRING_LITERAL(
hello
world
)RAW_STRING_LITERAL";
}
errore:raw string delimite
versione mio Python è: ~$ python --version
Python 2.6.6
ho provato in seguito in Python (mi vuole mostrare tutto): 1: \ uso come sequenza di escape >>> str('Let\'s Python')
"Let's Python"
2: \