码迷,mamicode.com
首页 >  
搜索关键字:class struct    ( 200435个结果
JavaSE-方法重载
方法的重载 方法的签名:由方法的名称及它的形参的数量、每个形参的类型组成。不包含返回类型。 方法的重载:同一个类中声明了多个同名的方法但它们的签名不同。即重载就是在一个类中,有相同的函数名称,但形参不同的函数。 方法的重载的规则: 方法名称必须相同。 参数列表必须不同(个数不同、或类型不同、参数排列 ...
分类:编程语言   时间:2021-06-02 13:07:52    阅读次数:0
懒加载组件
components: { editor: (resolve) => require(["../../components/editor"], resolve), }, ...
分类:其他好文   时间:2021-06-02 13:05:52    阅读次数:0
js判断一个元素是否在数组中的两种方法
1.js判断一个元素是否在数组中 (1).let arr = [1,2,3]; arr.includes(1) // true arr.includes(5) //false (2).a=["1", "3", "2", "3", "0"]; console.log(a.indexOf ('3')); ...
分类:编程语言   时间:2021-06-02 13:04:45    阅读次数:0
3574. 乘积数量
思路 思路同k倍区间。 前缀积得到每个点的正负。枚举右端点$r$,统计满足$s[r]$和$s[l-1]$同号的左端点$l$的数目,$s[r]$和$s[l-1]$同号则$s[l \sim r]$为正。$s[l \sim r]$为负的区间数量同理。 const int N=2e5+10; int a[N ...
分类:其他好文   时间:2021-06-02 12:57:18    阅读次数:0
贪心算法:摆动序列
376. 摆动序列 如果连续数字之间的差严格地在正数和负数之间交替,则数字序列称为摆动序列。第一个差(如果存在的话)可能是正数或负数。仅有一个元素或者含两个不等元素的序列也视作摆动序列。 例如,[1, 7, 4, 9, 2, 5]是一个 摆动序列 ,因为差值(6, -3, 5, -7, 3)是正负交 ...
分类:编程语言   时间:2021-06-02 12:55:58    阅读次数:0
Checking out and building Chromium on Linux
Checking out and building Chromium on Linux https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/build_instructions.md ...
分类:系统相关   时间:2021-06-02 12:50:21    阅读次数:0
docker搭建weblogic环境
参考如下: Installing WebLogic 12.1.3 with Docker (easier) If you work on a Linux-based machine as your development environment and you aren't familiar wit ...
分类:Web程序   时间:2021-06-02 12:45:31    阅读次数:0
终止正在导入数据的mysql语句
1.cli模式下登录mysql mysql -uroot -p 然后执行 show processlist; 此命令可以查到mysql正在运行的一些进程,最前面有进程的id 2.使用mysqladmin杀死相应的id mysqladmin -uroot -p kill id ...
分类:数据库   时间:2021-06-02 12:40:28    阅读次数:0
java多线程(一)——简单多线程demo
创建线程 1.继承Thread类,重写run()方法 public class ThreadCreateDemo1 { public static void main(String[] args) { MyThread thread = new MyThread(); thread.start(); ...
分类:编程语言   时间:2021-06-02 12:39:26    阅读次数:0
Python列表初始化的坑
二维列表初始化 L=[[0]*n]*m方式初始化 初始化一个 \(m\times n\) 的二维列表,初值全为0 L=[[0]*3]*2 print("初始的:",L) #赋值 for i in range(2): for j in range(3): L[i][j]=i+j print("赋值后: ...
分类:编程语言   时间:2021-06-02 12:38:38    阅读次数:0
200435条   上一页 1 ... 77 78 79 80 81 ... 20044 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!