python 字符串输出转义{}

 

>>> print ("{} 对应的位置是 {{0}}".format("runoob"))
runoob 对应的位置是 {0}

 

posted @ 2019-01-07 12:13  anobscureretreat  阅读(1538)  评论(0编辑  收藏  举报