import string template = string.Template("The $speed $color $thing1") template.substitute(speed='quick', color='brown', thing1='fox') # 'The quick brown fox'
Post a Comment
No comments:
Post a Comment