print()

TerryP bigboss1964 at gmail.com
Sun Oct 18 11:20:05 EDT 2009


On Oct 18, 12:35 pm, mattia <ger... at gmail.com> wrote:
> Yes, reading the doc I've come up with
> s = "%(0)03.02f%(1)s done" % {"0": 100.0-100.0*(size/tot), "1": "%"}
> but to it is not a good idea to use a dict here..

Also look at the new str.format()



More information about the Python-list mailing list