印刷したいキーにコロンがある辞書があります。残念ながら、コロン文字は書式設定に使用されるため、何らかの方法でエスケープする必要があります。
例えば:
>>> d = {'hello': 'world', 'with:colon': 'moo'}
>>> '{hello}'.format(**d)
'world'
>>> '{with:colon}'.format(**d)
KeyError: 'with'
>>> '{with\:colon}'.format(**d)
KeyError: 'with\\'
>>> '{with::colon}'.format(**d)
KeyError: 'with'