Home  >  Q&A  >  body text

python3.x - python中str.format()方法当str中含有“{}”该怎么处理?

PHP中文网PHP中文网2741 days ago1033

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-18 10:00:10

    两个{{}}
    "{{% asset_img {path} {title} %}}".format(title="pic",path="img/mypic.png")

    reply
    0
  • Cancelreply