Simple template in Python (no templating engines please)

后端 未结 0 970
有刺的猬
有刺的猬 2021-01-06 05:54

This code

txt = "f\'{string} a great day\'"
with open(\'new.txt\', \'w\', encoding=\'utf-8\') as out:
    out.write(f\'{string} a great day\')


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题