三种获取登陆信息方式 @RequestMapping("/user/info") @ResponseBody public Object userInfo(Authentication authentication) { return authentication.getPrincipal(); } ...
分类:
编程语言 时间:
2021-05-24 01:48:36
阅读次数:
0
1. 定义:用于在数组的末端添加一个或多个元素,并返回添加新元素后的数组长度。注意,该方法会改变原数组 2. 代码使用push方法,往数组中添加了四个成员 1 var arr = []; 2 console.log(arr.push(1)); //1 3 console.log(arr.push(' ...
分类:
其他好文 时间:
2021-05-24 01:39:52
阅读次数:
0
https://leetcode-cn.com/problems/find-minimum-time-to-finish-all-jobs/ 不会做,蹭个积分就走~ class Solution { /** * 最小的 工人最大用时 */ private int minId = Integer.MA ...
分类:
其他好文 时间:
2021-05-24 01:38:37
阅读次数:
0
def numpy_split_pd(df, split_num): # 使用numpy拆分DataFrame 把索引均分 均分后再用索引拆分DataFrame lst_index = list(map(lambda a: a.tolist(), numpy.array_split(df.index ...
分类:
其他好文 时间:
2021-05-24 01:08:44
阅读次数:
0
<!-- 引入viewer --> <link rel="stylesheet" href="../../../resources/viewer/viewer.min.css"> <script src="../../../resources/viewer/viewer.min.js"></scri ...
分类:
其他好文 时间:
2021-05-24 00:44:23
阅读次数:
0
参考博客: https://www.cnblogs.com/tugenhua0707/p/3776808.html 代码: Date.prototype.format = function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : ...
分类:
Web程序 时间:
2021-05-24 00:40:16
阅读次数:
0
package test; public class BubbleSort { public void bubble(Integer[] array,int from,int end) { for(int k=1;k<end-from+1;k++) { for(int i=end-from;i>=k ...
分类:
编程语言 时间:
2021-05-24 00:31:25
阅读次数:
0
package experiment6; public interface ISoundable { public void increaseVolume(); public void decreaseVolume(); public void stopSound(); public void pl ...
分类:
其他好文 时间:
2021-05-24 00:30:07
阅读次数:
0
前言 看的书是:C++ Primer Plus 第六版 第1章 预备知识 没啥要点 第2章 开始学习C++ 2.1 进入C++ 2.1.1 main()函数 main() //original C style 在C语言中,省略返回类型相当于说函数的类型为int,但是C++淘汰了这种用法 也有这种变体 ...
分类:
编程语言 时间:
2021-05-24 00:21:04
阅读次数:
0
func (o *MsSqlUtils) ExecuteSql(cmd string) (err1 error, affected int64) { defer func() { //必须要先声明defer,否则不能捕获到panic异常 if err2 := recover(); err2 != n ...
分类:
编程语言 时间:
2021-05-24 00:20:08
阅读次数:
0