Tag:Python format string

  • Overview of Python format string f-string (summary)


    brief introduction F-string, also known as formatted string literals, is a new string formatting method introduced in Python 3.6. This method originates from PEP 498 – literal string interpolation, and its main purpose is to make the operation of formatted string easier. F-string is in the form offorFModifier LED string(f’xxx’orF’xxx’), in braces{}Indicates the field to […]