[Python] Why there is f prepended to the values [duplicate]

Discussão em 'Python' iniciado por Stack, Abril 27, 2025.

  1. Stack

    Stack Membro Participativo

    In this repo, lines 11&49, a letter f is prepended to the values,ie,

    f'{path}/*'


    and

    f'data_{idx}'


    why?

    i have searched online that there is explanation for this. a letter f should be included within single or double quotes. but it's strange that i could run this piece of code perfectly fine on my machine

    Continue reading...

Compartilhe esta Página