存在整数键值就不能使用这种 S.format_map 的方式了,因为 format 中的 {n} 语法已经用来表示取第 n 个位置参数的值,如下:
>>> '{2}{1}{0}'.format('a', 'b', 'c')'cba'
{n} 语法的优先级是高于 format_map 的。