Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python

Name: Anonymous 2011-03-05 18:21

You can't put a single backslash at the end of a r"" string:

>>> print("\abc")
bc
(causes terminal to beep)
>>> print(r"\abc")
\abc
>>> print(r"abc\\")
abc\\
>>> print(r"abc\")
  File "<stdin>", line 1
    print(r"abc\")
                  ^
SyntaxError: EOL while scanning string literal


Fuck!

[b]\abc[/b] produces \abc
[b]abc\\[/b] produces [b]abc\[/b]
[b]abc\[/b] produces [b]abc[/b]

Python is as stupid as Shitchan!

Name: Anonymous 2011-03-05 18:45

The backslash escapes the quotation mark.

I HELPED HIM!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List