[Python] How can I use string with backslash for file path information in Python?

Discussão em 'Python' iniciado por Stack, Julho 31, 2025.

  1. Stack

    Stack Membro Participativo

    [​IMG]

    In attatched image, I got errors in line 4 before line 5 when I execute test02.py. I would like to get as a simple string with backslash. How can I solve this probleme ??? I want to print data same as text. However, I got a error message in line 4. The error is "4: SyntaxWarning: invalid escape sequence '\P'" Please, help me.

    Continue reading...

Compartilhe esta Página