- 博客(4)
- 收藏
- 关注
原创 面向接口编程——命令模式
package Day05;public class TestCommand { public static void main(String[] args) { ProcessArrayCommand pc = new ProcessArrayCommand(); int[] a={1,2,3,4,5,6,7,78}; Command pr = new PrintArray(); Command sa = new SumArray
2020-10-21 15:48:51
99
原创 设计一个星座类,并为其添加一个带参数的构造函数
public class Constellation { private String birthday; private int years; private int months; private int days; public Constellation(String birthday){ this.birthday = birthday; } public int getBornYear(){ return y
2020-10-20 14:58:28
736
转载 2020-08-24
Redis和MongoDB的区别(面试受用)项目中用的是MongoDB,但是为什么用其实当时选型的时候也没有太多考虑,只是认为数据量比较大,所以采用MongoDB。最近又想起为什么用MongoDB,就查阅一下,汇总汇总:之前也用过redis,当时是用来存储一些热数据,量也不大,但是操作很频繁。现在项目中用的是MongoDB,目前是百万级的数据,将来会有千万级、亿级。就Redis和MongoDB来说,大家一般称之为Redis缓存、MongoDB数据库。这也是有道有理有根据的,Redis主要把数据存储
2020-08-24 22:48:26
89
原创 R语言中apply和sapply函数
apply函数和sapply的功能apply功能Retruns a vector or array or list of values obtained by applying a function to margins of an array or matrix.apply函数经常用于计算矩阵中行或列的均值,使用方法如下。a <- matrix(1:9,nrow=3)##生成3 ...
2020-03-12 22:17:45
15226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人