string.format format string containing {

后端 未结 5 753
半阙折子戏
半阙折子戏 2020-12-07 04:31

Is there a way for the format string used in a call to string.format to contain a { character that is not used for substring insertion?

For example how could I do th

5条回答
  •  离开以前
    2020-12-07 05:19

    Double it up to escape it. So "{{" will work properly and will output from the string.format as a single "{"

提交回复
热议问题