Hi everyone, 

       I am studying the python 3 and I am confused about the raw string. Why 
does the python interpreter do not escape the single backslash  before the 
quotes even I add a "r" before the string.  The following is an example:
       >>> print(r"\")
      
        SyntaxError: EOL while scanning string literal
       >>> print(r"\\")
        \\
        >>> 




Jiang Shan                                        
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to