python 字符串输出转义{}

 

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

 

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