template strings : Template : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Template »

 

template strings


from string import Template


s = Template('$x, glorious $x!')
s.substitute(x='slurm')

print s



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Template