📜  python替换字符串中的字符 - Python代码示例

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

代码示例6
text = 'Mohammad_Sadegh_Eslahi'
text = text.replace('_', ' ')
print(text)
>>>
'Mohammad Sadegh Eslahi'