📜  插入字符串 python 多个 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:53.135000             🧑  作者: Mango

代码示例2
>>> line = 'Kong Panda'
>>> index = line.find('Panda')
>>> output_line = line[:index] + 'Fu ' + line[index:]
>>> output_line
'Kong Fu Panda'