Well.... I must not understand what he means, or there must be an error in his writing. When I type the first example with the negative, it moves to the right. In the second, it moves to the left.
I also noticed that he wrote right instead of write, so this whole sentence might be an error.
>>> "%-30s %s" % ("Hello", "Hi")
'Hello______________________________Hi'
>>> "%30s %s" % ("Hello", "Hi")
'______________________________Hello Hi'
The underlines represent spaces, the spaces don't show on the post if I don't underline the area.
Edited by live504, 03 July 2010 - 08:50 PM.


Sign In
Create Account


Back to top









