想请教一下,如何实现在输出文本中标注出自己需求的关键词(任何标注符号都可以)
a = "123123123" b = "2" a = a.replace(b,"*→{}←*".format(b)) print(a)