>>> print ("{} 对应的位置是 {{0}}".format("runoob")) runoob 对应的位置是 {0} 转载于:https://www.cnblogs.com/sea-stream/p/10232523.html