The string containing placeholders in the form {n}
where n
is a zero-based index.
The values to replace the placeholders with. Each argument can be a string or number.
The formatted string with all placeholders replaced by their corresponding arguments.
Formats a string by replacing placeholders with corresponding arguments.
Replaces each occurrence of
{0}
,{1}
,{2}
, etc., in theformat
string with the respective value fromargs
.