+ 1
In Python, is there no special characters like newline(\n), vertical tab(\b) as in C or any alternate way to use this.......
2 Antworten
+ 5
you can use so called whitespaces ( defined in string.whitespacelike):
' \t\n\r\x0b\x0c'
this is ascii:
32 = space, 9 = horizontal tab, 10 = new line, 13 = CR, 11 = vertical tab, 12 = form feed.
you can use them, but not all show the expected result.
+ 1
Thank you :) Lothar