difference after remove
Christoph Haas
email at christoph-haas.de
Mon Oct 24 09:26:08 EDT 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],\
> [1,2,5,3,9,1,1,1,9,1],\
> [0,0,5,1,1,1,9,7,7,7]]
> 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.
Christoph
--
~
~
".signature" [Modified] 1 line --100%-- 1,48 All
More information about the Python-list
mailing list