Irene181 Irene181
4年前
盘点Python基础之字典的那些事儿
一、前言如果有列表,需要对"xiaoWang"这个名字进行修改,则要通过对应的索引值进行代码修改。nameList'xiaoZhang','xiaoWang','xiaoLi'nameList1'xiaoxiaoWang如果列表的顺序发生了变化,如下:nameList'xiaoWang','xiaoZ
Easter79 Easter79
3年前
spring通过注解@Value获取properties配置
在springmvc中,想通过注解读取\.properties文件的值,可以采用以下方式一.在springmvc.xml配置文件中配置<!加载配置文件<context:propertyplaceholderlocation"classpath:properties/.properties"/二.在相应
Wesley13 Wesley13
3年前
IP地址的正则表达式
finalStringREGX_IP"((2505|204\\d|1\\d{2}|19\\d|\\d)\\.){3}(2505|204\\d|1\\d{2}|19\\d|\\d)";在过滤json数据中的ip,需要判断异常ip值,我的写法:^"{2}\b((2505|204
Stella981 Stella981
3年前
Kaggle竞赛入门教程案例
Kaggle比赛入门新手教程(房价预测案例:前篇)Kaggle房价预测全流程详解竞赛链接与背景介绍竞赛代码解析导入工具包数据加载数据预处理异常值初筛标签值对数
Wesley13 Wesley13
3年前
ES6箭头函数特点
1、语法简单constfunx1;constfun()1;constfun(x,y){1;returnxy;}2、内置return语句、单行代码返回当前代码的返回值、多行时返回undefined3、自动绑定this、this为上级的作用域
Stella981 Stella981
3年前
Rust编程基础:016、vector
1、创建空的vector:Vec<Tletmutv:Vec<i32Vec::new();//v.push(1);2、创建包含初始值的vectorletvvec!1,2,3;3、丢弃vector{letv1vec!1,2,3;}
Stella981 Stella981
3年前
ES6 for in与for of 的使用方法及其区别
  // for in遍历的是数组的索引(即键名),而for of遍历的是数组元素值。 let arr  \1,2,3,4,5,6,7\    for(let index of arr){     //   console.log(index)//1 2 3 4 5 6 7    }    for(let index in
Stella981 Stella981
3年前
React对state的初级理解
props是参数,个个Class之间传值用的。state则为某个Class的内部状态,Class需要根据这个state是否改变而做出改变;<div id"content"</div    <script type"text/babel"      var CommentForm  React.createC
Wesley13 Wesley13
3年前
mysql Alter 的问题
转自:https://blog.csdn.net/c\_enhui/article/details/50903351\设置或删除列的默认值。该操作会直接修改.frm文件而不涉及表数据。此操作很快\ALTERCOLUMNALTERTABLEdsp\_ad\_center.XianDuanALTERCOLUMNxxxSET
Wesley13 Wesley13
3年前
Java面向对象
1\.方法    方法就是对java代码功能的封装。1.1方法定义的格式\访问修饰符\\关键字\static\\返回值类型方法名(\参数列表\){}forexample:    public static int add(int a,int