d = { ord(c): str(i) for i, c in enumerate( """ 껾 뷝 뾭 꿭 ꯎ 몪 곍 쑏 껚 뾮 """.split() ) } s = "뷝뾮.뾭w粉丝 몪关注 껚곍作品" s.translate(d)