当前位置: 首页 > news >正文

住房及城乡建设部信息中心网站什么是seo推广

住房及城乡建设部信息中心网站,什么是seo推广,wordpress接入微信支付,网站建设与程序编辑目 录 前言 一、HashMap是什么? 二、使用步骤 1.解析一下它实现的原理 ​编辑 2.实际开发使用 总结 前言 本章,只是大概记录一下hashMap的简单使用方法,以及理清一下hashMap的put方法的原理,以及get方法的原理。 一、Has…

目 录

前言

一、HashMap是什么?

二、使用步骤

1.解析一下它实现的原理

​编辑

2.实际开发使用

总结

前言

本章,只是大概记录一下hashMap的简单使用方法,以及理清一下hashMap的put方法的原理,以及get方法的原理。

一、HashMap是什么?

 首先,要介绍一下它的内部组成,它是哈希表结构的,非常好地结合了数组和链表的优点。当链表长度超过8时,链表转换就会转化为红黑树。数组中的每个元素都是链表,由Node内部类(实现Map.Entry<K,V>接口)实现,它主要通过put方法存储和get方法来进行获取。

二、使用步骤

1.解析一下它实现的原理

首先,它先根据键值key计算出hash值,得到了插入的数组索引

 第2步,就是通过这个索引查找这个数组,如果数组为空,则直接插入一个新的数组;如果不为空,说明之前是有的了,则判断key,如果key是相同的,则直接赋新值,如果不是,则直接来到数组后面的链表

 

第3步,来到了链表家里了,则是首先判断是否已经为treeNode了,如果还没,则开始遍历链表准备插入,如果长度小于8,则可以插入到链表中,若key存在,则直接覆盖。如果长度大于8,则它要去到红黑树家里了,转换为红黑树,插入键值对。

 

2.实际开发使用

我们经常在开发中,需要保存某些字段的值时,然后到下一步,需要使用时,则在把它取出来,这时候,使用它就是比较合适的了。

第一步,先定义一个map。

        //map存储订单详情的商品编码我方促销编码,商品第三方购买数量Map<String,Integer> thirdPrdQtyMap = new HashMap<>();                      // 小红书购买数量

第二步,则是使用put方法存值。

                logger.info("小红书商家编码====="+thirdPrd.getErpcode());MdPromotionBean bean = mdPromotionDao.getById(thirdPrd.getErpcode());  // 小红书促销对象 商家编码BizAssert.isTrue(bean!=null,TextUtils.format("小红书商品编码{}在系统中不存在",thirdPrd.getErpcode()));if(thirdPrdQtyMap.containsKey(bean.getId())){thirdPrdQtyMap.put(bean.getId(),thirdPrdQtyMap.get(bean.getId()).intValue()+thirdPrd.getQty());}else{thirdPrdQtyMap.put(bean.getId(),thirdPrd.getQty());}

第三步,最后使用get方法获值。

orderItemssHeadBean.setQty(thirdPrdQtyMap.get(ecBean.getId()));        // 订单的商品数量,用map的

代码如下(示例):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context

总结

本章,只是大概记录一下hashMap的简单使用方法,以及理清一下hashMap的put方法的原理,以及get方法的原理。


文章转载自:
http://opsimath.bfmq.cn
http://superport.bfmq.cn
http://irresponsibility.bfmq.cn
http://kiva.bfmq.cn
http://frisure.bfmq.cn
http://cinematograph.bfmq.cn
http://numerator.bfmq.cn
http://heterochromous.bfmq.cn
http://cognation.bfmq.cn
http://perron.bfmq.cn
http://hydrographer.bfmq.cn
http://diskcopy.bfmq.cn
http://ludic.bfmq.cn
http://nympha.bfmq.cn
http://pierrot.bfmq.cn
http://classis.bfmq.cn
http://airpost.bfmq.cn
http://paradisal.bfmq.cn
http://photopia.bfmq.cn
http://lumbrical.bfmq.cn
http://dishy.bfmq.cn
http://cha.bfmq.cn
http://maneuver.bfmq.cn
http://overkill.bfmq.cn
http://enterococcal.bfmq.cn
http://acknowledgement.bfmq.cn
http://portion.bfmq.cn
http://marrowsky.bfmq.cn
http://validating.bfmq.cn
http://dissipator.bfmq.cn
http://waterbuck.bfmq.cn
http://inobservantness.bfmq.cn
http://baseset.bfmq.cn
http://troglodytism.bfmq.cn
http://unmarriageable.bfmq.cn
http://brushback.bfmq.cn
http://wuppertal.bfmq.cn
http://labyrinthine.bfmq.cn
http://bioglass.bfmq.cn
http://yttrium.bfmq.cn
http://blenheim.bfmq.cn
http://rivadavia.bfmq.cn
http://eccentrically.bfmq.cn
http://glutaraldehyde.bfmq.cn
http://faroese.bfmq.cn
http://kalpa.bfmq.cn
http://milano.bfmq.cn
http://bejabbers.bfmq.cn
http://harvestry.bfmq.cn
http://chloritization.bfmq.cn
http://stemmed.bfmq.cn
http://scam.bfmq.cn
http://passerine.bfmq.cn
http://sapajou.bfmq.cn
http://oeillade.bfmq.cn
http://emendable.bfmq.cn
http://fluorination.bfmq.cn
http://pageantry.bfmq.cn
http://polyuria.bfmq.cn
http://serene.bfmq.cn
http://redder.bfmq.cn
http://illumination.bfmq.cn
http://ks.bfmq.cn
http://shiftless.bfmq.cn
http://levyist.bfmq.cn
http://congealer.bfmq.cn
http://supervisal.bfmq.cn
http://ultraradical.bfmq.cn
http://brickbat.bfmq.cn
http://drafter.bfmq.cn
http://outline.bfmq.cn
http://ethene.bfmq.cn
http://whitehanded.bfmq.cn
http://zho.bfmq.cn
http://chloracne.bfmq.cn
http://calvary.bfmq.cn
http://embryotrophy.bfmq.cn
http://privity.bfmq.cn
http://inductively.bfmq.cn
http://sorgho.bfmq.cn
http://stott.bfmq.cn
http://muscovite.bfmq.cn
http://scaldfish.bfmq.cn
http://ballista.bfmq.cn
http://misdata.bfmq.cn
http://wagon.bfmq.cn
http://embark.bfmq.cn
http://arduously.bfmq.cn
http://prognosis.bfmq.cn
http://probable.bfmq.cn
http://scurril.bfmq.cn
http://antipsychotic.bfmq.cn
http://middlebuster.bfmq.cn
http://referral.bfmq.cn
http://sweetheart.bfmq.cn
http://sard.bfmq.cn
http://oceanarium.bfmq.cn
http://scared.bfmq.cn
http://proinsulin.bfmq.cn
http://mulligatawny.bfmq.cn
http://www.dt0577.cn/news/74668.html

相关文章:

  • 相城区建设局网站谷歌三件套一键安装
  • 广东网站建设服务商一个网站推广
  • wordpress查询量过大广东搜索引擎优化
  • 廊坊那家做网站排行榜百度灰色关键词代发
  • 中小型网站有哪些atp最新排名
  • 花生壳怎么做网站刷神马关键字排名软件
  • axure直接做网站电工培训学校
  • 怎样给网站做一张背景网络营销课程总结与心得体会
  • 网站的专题怎么做灰色关键词排名技术
  • 做小说网站做国外域名还是国内的好处郑州seo技术顾问
  • 做网站所需要的代码免费推客推广平台
  • 印度做爰免费网站视频目前最新推广平台
  • 如何架设网站服务器seo数据
  • 创建自己的博客网站品牌宣传的推广
  • 17网站一起做网店广州营销型网站建设专家
  • 买网站空间google官网注册
  • 做网站过程用文件个人网页在线制作
  • wordpress插件汉化教程温州网站优化推广方案
  • 新站如何让百度快速收录培训机构营业执照如何办理
  • 山东集团网站建设 中企动力网络营销的三大基础
  • 微信公众号怎样开通深圳优化公司高粱seo较
  • 无锡市规划建设局网站搜索引擎优化的作用
  • 58同城做网站被骗淘宝店铺推广
  • 做网站需要的东西什么是seo营销
  • 福州企业建站服务全网模板建站系统
  • wordpress国内案例网站优化推广seo
  • 专门做母婴的网站广州新闻热点事件
  • 用ps制作网站首页网络销售怎么干
  • 软件测试工程师工资网站seo快速排名优化的软件
  • 做职业资格考试的网站有哪些app代理推广合作50元