difference after remove
email at christoph-haas.de
Mon Oct 24 15:26:08 CEST 2005
On Monday 24 October 2005 15:02, Shi Mu wrote:
> Is there any difference if I remove the '/'
> from the following statement?
You probably mean '\' instead of '/'.
> intMatrix2 = [[1,1,2,4,1,7,1,7,6,9],\
> print intMatrix2
> I removed one '\' and it still works.
> So what is the use of '\'?
It's a line continuation character. But you can omit it if it's clear to
the interpreter that the line must continue - like when using brackets.
".signature" [Modified] 1 line --100%-- 1,48 All
More information about the Python-list