Intor
Here, we are not talk about THE template as we have used to talk about the tempale engine such as jinjia2
.
but, we are talking about string templete
Commonly we write like this print('balalabala %d' % v)
it makes v
instead of %d
or in new style or THE F word whateve you want call it. print(f'balabala {v}')
Templates provide simpler string substitutions as described in PEP 292. Instead of the normal “%”-based substitutions. As we know, a string when we want to contert them to some format way.
Talk is cheap
1 | #!/usr/bin/env python3 |
Read it & comprehen it & love it
EOF.