Using print with format to stdout generates unwanted space
Tim Williams (gmail)
tdwdotnet at gmail.com
Mon Jun 20 19:08:03 EDT 2005
On 6/20/05, Michael Hoffman <cam.ac.uk at mh391.invalid> wrote:
> Paul Watson wrote:
>
> > While printf() does tightly control formatting in C, it does not in
> > Python.
>
> There is no printf() in Python. You should not think of print as being a
> Python version of printf.
For quick and simple removal of the extra space, append a '\b'
backspace character to your output "string"
More information about the Python-list
mailing list