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 ‘}’).

猜你喜欢

转载自blog.csdn.net/qq_42194192/article/details/83905142