定义一个map类型的对象dict,表示字典map的key是待加密的字符,value是加密后的字符for(int i = 0;i{ string2[i] = dict[string2[i]] //dict[string2[i]]表示key 为 string[2] 的 value}