mapping = {'': '0', '': '1', '': '2', '': '3', '': '4',
'': '5', '': '6', '': '7', '': '8', '': '9'} # 映射字典,使用时需自行更新
text = '我的工资是55555,你的年纪是6'
# 定义文本信息处理函数,通过字典mapping中的映射关系解密
for key, value in mapping.items():
text = text.replace(key, value)
print(text)