tilus.Script.printf

Contents

tilus.Script.printf

Script.printf(fstring, *args)[source]

Print a formatted string.

This instruction prints a formatted string to the standard output. The fstring parameter is a format string that specifies how the output should be formatted. The args parameter is a variable-length argument list that contains the values to be formatted according to the fstring.

Parameters:
  • fstring (str) – The format string that specifies how the output should be formatted. It can contain format specifiers similar to those used in C-style printf function.

  • args (Expr | int | float) – The values to be formatted according to the fstring. These can be expressions, integers, or floats. The number and types of args should match the format specifiers in fstring.

Return type:

None

See also

printf(): The C-style printf function for formatted output. For its documentation, refer to the printf reference.