chaînes de modèle en python
>>> 'Hello, {}'.format(name)
name='Bob'
'Hello, Bob'
AMi
>>> 'Hello, {}'.format(name)
name='Bob'
'Hello, Bob'
from string import Template
poem = Template('$x are red and $y are blue')
print(poem.substitute(x='roses', y='violets'))
#>>>roses are red and violets are blue