在做一些算法题时经常要用到二维切片,所以这里整理一下创建二维切片的方法,方便日后查阅。 package main import "fmt" func main() { // 初始化方法1 row, column := 3, 4 var answer [][]int for i := 0; i < r ...
分类:
其他好文 时间:
2020-08-02 23:37:16
阅读次数:
111
7-3 出租 (20分) 下面是新浪微博上曾经很火的一张图: 一时间网上一片求救声,急问这个怎么破。其实这段代码很简单,index数组就是arr数组的下标,index[0]=2 对应 arr[2]=1,index[1]=0 对应 arr[0]=8,index[2]=3 对应 arr[3]=0,以此类 ...
分类:
其他好文 时间:
2020-08-02 16:17:20
阅读次数:
82
1、拉取一个项目的代码在本地运行,调用接口时报错: org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'type' from result set. Cause: java. ...
分类:
其他好文 时间:
2020-08-01 21:36:18
阅读次数:
317
在运行一些编译后的C类二进制程序时,会遇到报错如下: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found 这里你就要知道,是你的gcc版本低了,同时你可以检测一下本机所支持的glibc版本范围: [root@VM-75-61 ~]# s ...
分类:
系统相关 时间:
2020-08-01 21:15:59
阅读次数:
86
错误的写法: <resultMap id="BaseResultMap" type="com.dong.springcloud.entities.Payment"> <id column="id" property="id" ></id> <id column="serial" property=" ...
分类:
移动开发 时间:
2020-07-31 14:13:46
阅读次数:
112
字段保留在 dba_ind_columns视图中 select a.uniqueness 索引类型,b.index_name 索引名称,b.column_name 字段 from user_indexes a ,user_ind_columns b where a.table_name=b.tabl ...
分类:
数据库 时间:
2020-07-30 18:27:10
阅读次数:
135
看到一道面试题,用flex布局九宫格,决定自己实现一下 ###基础版 .father { display: flex; /*必须给宽高把盒子撑起来,然后调整width可看是否要正方形*/ width: 300px; height: 300px; flex-direction: column; } . ...
分类:
其他好文 时间:
2020-07-29 21:45:05
阅读次数:
57
mybatis 注解@Results、@Result、@ResultMap、@One的使用 column是数据库列名 property是实体类的属性名 javaType是实体类的类名(全路径格式) one对应的是一对一 many对应的是一对多 ...
分类:
其他好文 时间:
2020-07-29 12:36:35
阅读次数:
81
drop procedure if exists schema_change; delimiter ';;'; create procedure schema_change() begin if not exists( select * from information_schema.`COLUMN ...
分类:
数据库 时间:
2020-07-28 17:23:22
阅读次数:
92
修改表结构 语法: 1. 修改表名 ALTER TABLE 表名 RENAME 新表名; 2. 增加字段 ALTER TABLE 表名 ADD 字段名 数据类型 [完整性约束条件…], ADD 字段名 数据类型 [完整性约束条件…]; 3. 删除字段 ALTER TABLE 表名 DROP 字段名; ...
分类:
其他好文 时间:
2020-07-28 14:14:21
阅读次数:
65