1. 程式人生 > >python中format_map函式如何使用?

python中format_map函式如何使用?

python中format_map函式如何使用?
python字串中format_map 函式如何使用?
Help on built-in function format_map:

format_map(…) method of builtins.str instance
S.format_map(mapping) -> str

Return a formatted version of S, using substitutions from mapping.
The substitutions are identified by braces (’{’ and ‘}’).