需要将⽂本中的敏感词替换为保留⾸字母并⽤ * 号覆盖剩余字符 。例如: "密码"(2字)替换为" 密
word[0] + '* ' * (len(word) - 1)
word[0] + '** '
'* ' * len(word)
word[0] + '* ' * len(word)