小白一枚,,谢谢
template2 = 'Hello {2}, Hello {3}, Hello {1}, Hello {0}.' result2 = template2.format('World', 'China', 'Beijing', 'imooc') print(result2)
指定相关位置的值