How to replace string that contains curly bracket in Python?

后端 未结 0 492
无人共我
无人共我 2020-12-31 13:38

Please see below code to understand my problem:

str_line = data[\'line\']  # data[\'line\'] holds "I was born in {year}"
str_year = \'1987\'
         


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