Special Character Meanings Defined

Posted by Noctis Skytower on Stack Overflow See other posts from Stack Overflow or by Noctis Skytower
Published on 2010-03-13T03:46:14Z Indexed on 2010/03/13 3:57 UTC
Read the original article Hit count: 324

Filed under:
|
|

In Python's module named string, there is a line that says whitespace = ' \t\n\r\v\f'.

  • ' ' is a space character.
  • '\t' is a tab character.
  • '\n' is a newline character.
  • '\r' is a carriage-return character.

  • '\v' maps to '\x0b' (11). What does it mean and how might it be typed on a keyboard (any OS)?
  • '\f' maps to '\x0c' (12). What does it mean and how might it be typed on a keyboard (any OS)?

© Stack Overflow or respective owner

Related posts about python

Related posts about character