Springboot学习

  • Post author:
  • Post category:其他

1.快速创建一个maven项目如图: new>new module>Spring initializr 暂时只勾选spring web 特别说明:该项目的ceshiApplication是启动类(入口),必须放在最外层。 新建一个类为hellocontroller,编辑内容如下: 注:@RequestMapping("/")是可以修改的,如改成@RequestMapping("/hel…

继续阅读 Springboot学习

单元测试(三)JUnit 进阶功能:Suites 打包测试、Categories 分类测试

  • Post author:
  • Post category:其他

2019独角兽企业重金招聘Python工程师标准>>> 如果你的 JUnit 仍未入门,可以查阅 https://my.oschina.net/tridays/blog/815586 来学习。 打包测试 针对需要打包多个测试类,一次执行的情况,JUnit 提供了 Suite Runner。 import org.junit.runner.RunWith; import org.j…

继续阅读 单元测试(三)JUnit 进阶功能:Suites 打包测试、Categories 分类测试

通过watch监听,添加列表搜索条件

  • Post author:
  • Post category:其他

<li v-for="(p,index) of filGoods" :key="index"> {{g.name}}-{{g.price}} </li> data:{ goods:[ {id:'1',name:'苹果',price:'5'}, {id:'2',name:'香蕉',price:'10'}, {id:'3',name:'西瓜',price:'8'}, {id:'…

继续阅读 通过watch监听,添加列表搜索条件

[LeetCode308]Range Sum Query 2D – Mutable

  • Post author:
  • Post category:其他

Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). Range Sum Query 2D The above rectangle (w…

继续阅读 [LeetCode308]Range Sum Query 2D – Mutable

OpenLayers笔记3:地图事件监听概述及部分简单应用

  • Post author:
  • Post category:其他

目录 地图事件监听概述 1.鼠标触发事件 2.地图移动事件 3.图层渲染事件 4.change事件 5.其它事件 地图事件监听的部分简单应用 监听鼠标触发获取地图坐标 监听指针移动获取指针位置矢量要素的属性值 监听地图移动实现图层的动态显隐 地图事件监听概述 地图能够监听的事件主要包括: 1.鼠标触发事件 click :鼠标单击地图触发的事件(鼠标单击多少次地图,该事件就触发多少次); singl…

继续阅读 OpenLayers笔记3:地图事件监听概述及部分简单应用

MySQL中concat函数

  • Post author:
  • Post category:mysql

一. concat()函数 含义: 将多个字符串连接成一个字符串。 语法: concat(str1, str2,…) 返回结果为连接参数产生的字符串,如果有任何一个参数为null,则返回值为null。 演示: select concat (sname, sage) as info from student; 例2:在例1的结果中三个字段id,name,score的组合没有分隔符,我们可以加一个逗号…

继续阅读 MySQL中concat函数

单片机学习之GPIO

  • Post author:
  • Post category:其他

今日分享如何通过手册理解单片机IO知识点。 含义解释: 1. GPIO:同我们常说的IO口一样, General Purpose Input Output (通用输入/输出)简称为GPIO,每个GPIO端口可通过软件分别配置成输入或输出模式。 2. 外设:指的是除CPU以外的外围功能模块,只不过这部分电路依旧被封装在单片机内部,比如IO,ADC,DAC,TIM等。 3. 复位:把MCU恢复到最开始…

继续阅读 单片机学习之GPIO

Python 统计YOLO(txt)格式标签中各类别样本数

  • Post author:
  • Post category:python

代码如下:(自用) import os txt_path = r'E:\Downloads\mask_yolo_853_tra80\YOLOLabels\\' # txt文件所在路径 class_num = 3 # 样本类别数 class_list = [i for i in range(class_num)] class_num_list = [0 for i in range(class_nu…

继续阅读 Python 统计YOLO(txt)格式标签中各类别样本数

m选n组合的两种算法(C语言实现)

  • Post author:
  • Post category:其他

原问题: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. 1. 递归算法 即首先选择n,然后递归地从剩下的1...n-1选择k-1个数,然后选择n-1,然后递归地从剩下的1...n-2选择k-1个数,直到选到k。 //d存储选择的数,NUM指示选择多少个数,即初始k的…

继续阅读 m选n组合的两种算法(C语言实现)

数组push、pop、shift、unshift的模拟实现

  • Post author:
  • Post category:其他

Array.prototype.myPush = function (val) { const arr = this; arr[arr.length] = val; return arr.length; }; Array.prototype.myPop = function() { if (!this.length) { return undefined; } const val = this[t…

继续阅读 数组push、pop、shift、unshift的模拟实现