Question about code writing '% i, callback'

Zachary Ware zachary.ware+pylist at gmail.com
Mon Nov 30 11:53:08 EST 2015


On Mon, Nov 30, 2015 at 10:44 AM, fl <rxjwg98 at gmail.com> wrote:
> The content inside parenthesis in last line is strange to me.
>
> "button %s" % i, callback

https://docs.python.org/library/stdtypes.html#printf-style-string-formatting

-- 
Zach



More information about the Python-list mailing list