📜  python string format_map - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:53.441000             🧑  作者: Mango

代码示例1
characters = {
                'Man':'Aragorn',
              'Dwarf':'Gimli'
             }

print('{Man} is a friend of {Dwarf}'.format(**characters))