编辑器
txt = "Hi Sam!"; x = "mSa"; y = "eJo"; mytable = txt.maketrans(x, y); print(txt.translate(mytable));
Hi Joe!