Strange characters in Python

I am working on Python and experimenting with escape sequences \vand \f. The output seems to give strange characters, where I put these 2 escape sequences. I cannot post an output image due to some anti-spam policies on the website. Can anyone give any ideas as to what might be the problem. Thank.

+3
source share
1 answer

Escaped sequences are described here:
http://docs.python.org/reference/lexical_analysis.html#string-literals

\v- the vertical tab \fis the form feed

REPL, (0c).
:

>>> '\f'
'\x0c'

, escape- \x C.
: http://www.python.org/dev/peps/pep-0223/

:
ASCII , ord():

>>> ord('\f')
12
+4

All Articles