p=str.maketrans("abcde","12345")字符串
print("hehe.aabbec".translate(p))make
输出结果为 h5h5,112253字符
即上方两个字符串种字符一一对应替换,字符串长度须要相等,不然报错ab