代码如下: pub fn Write(&mut self,ip :u32,data: &[u8]){ let a = self.adaptors.entry(ip).or_insert(Adaptor::new(ip)); }