1 let arr = ["I", "go", "home"]; 2 3 delete arr[1]; // remove "go" 4 5 alert( arr[1] ); // undefined 6 7 // now arr = ["I", , "home"]; 8 alert( arr.le ...
分类:
编程语言 时间:
2020-12-18 12:30:13
阅读次数:
2
1 //给出队接口的定义,然后基于List接口及其实现类给出队的两种实现类(采用ArrayList和LinkkedList 2 //实现分别给出队的实现类) 3 package classwork9; 4 5 public interface Dui { 6 public abstract void ...
分类:
其他好文 时间:
2020-12-17 12:53:52
阅读次数:
3
数据库总结 数据库设计 数据库设计的必要性 好的数据库结构有利于:节省数据的存储空间,能够保证数据的完整性,方便进行数据库应用系统的开发设计不好的数据库结构将导致:数据冗余、存储空间浪费和内存空间浪费. 1.数据库设计步骤 需求分析。了解分析用户需求。 概念结构设计。概念结构是对现实世界的一种抽象, ...
分类:
数据库 时间:
2020-12-17 12:33:12
阅读次数:
6
有效的字母异位词 题目地址:https://leetcode-cn.com/problems/valid-anagram/ 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的字母异位词。 示例 1: 输入: s = "anagram", t = "nagaram" 输出: true ...
分类:
编程语言 时间:
2020-12-15 12:32:59
阅读次数:
4
运用训练好的模型进行目标检测,模型输出为中心点对grid的偏移,长宽相对于anchor的缩放比例以及类别 其维度为(b, 13, 13, 3, classes+5) 1. 根据(x, y, h, w)计算出预测框相对于原图像的位置和大小 def yolo_correct_boxes(box_xy, ...
分类:
其他好文 时间:
2020-12-15 12:31:28
阅读次数:
2
JS 数据类型 JS数据类型:JS的基本类型和引用类型有哪些呢? 基本类型(单类型):除Object。 String、Number、boolean、null、undefined symbol、bigInt 引用类型:object。里面包含的 function、Array、Date。 ES6 中新增了 ...
分类:
编程语言 时间:
2020-12-14 13:41:21
阅读次数:
6
安装 npm install html2canvas --save npm install qrcodejs2 --save //二维码 引入 import html2canvas from 'html2canvas' import QRCode from 'qrcodejs2'; 生成二维码 <d ...
分类:
Web程序 时间:
2020-12-11 11:57:55
阅读次数:
5
数组的基本使用 一、数组概念 所谓数组(Array),就是将多个元素(通常是同一类型)按一定顺序排列放到一个集合中,那么这个集合我们就称之为数组 数组的定义 数组式一组有序的数据集合,内部可以存放多个数据,不限制数据类型(嵌套另外一个数组),并且长度可以动态调整 创建方式:[](字面量),new A ...
分类:
编程语言 时间:
2020-12-10 11:38:47
阅读次数:
19
Difficulty: Medium Related Topics: Array, Backtracking Link: https://leetcode.com/problems/word-search/ Description Given an m x n board and a word, f ...
分类:
其他好文 时间:
2020-12-10 11:30:28
阅读次数:
11
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
编程语言 时间:
2020-12-10 11:13:48
阅读次数:
6