Learning immediately: https://edu.csdn.net/course/play/26755/340104?utm_source=blogtoedu
Template object package is placed $ placeholders, and replace the placeholder with the actual values substitute method:
template1 = Template ( '$ s is the best language)
print(template1.substitute(s='python')