2009-04-10 名前つき変換指示子 python htmlなどへパースする際に便利。 でもこれインデント壊れるんだよね。まーしゃーない。 dic = {'name' : 'おいらの名前', 'birthday' : '2009/4/10', 'height' : '175cm' } html = """<p>%(name)s</p> <p>%(birthday)s</p> <p>%(height)s</p>""" % dic