public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri ...
分类:
其他好文 时间:
2021-04-20 14:06:09
阅读次数:
0
解决问题-》有的放矢 1.spark 报错 Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient reso ...
分类:
其他好文 时间:
2021-04-19 15:56:23
阅读次数:
0
关于整型切片的初始化,下面正确的是: s := make([]int) s := make([]int, 0) s := make([]int, 5, 10) s := []int{1, 2, 3, 4, 5} [答案]: BCD [解析&更多]: 再在使用make初始化切片的时候,除了类型,长度也 ...
分类:
其他好文 时间:
2021-04-19 15:15:15
阅读次数:
0
@ 问题描述 通过new Scanner(System.in).next();输入一段中文字符串并显示到控制台时,输出的总是一些00???@@@等之类的乱码。 代码如下: Scanner sc = new Scanner(System.in); System.out.println("请输入中文:" ...
分类:
编程语言 时间:
2021-04-19 15:13:17
阅读次数:
0
##思路 最长上升子序列的变形+记录路径 ##AC代码 #include<iostream> #include<cmath> #include<string.h> #include<algorithm> #include<stdio.h> #include<iomanip> #define inf ...
分类:
其他好文 时间:
2021-04-19 14:43:51
阅读次数:
0
opt_map函数中对于指定了select program的分析 从过滤器中进行map static int open_output_file(OptionsContext *o, const char *filename) open_output_file函数中根据stream_map进行创建输出 ...
分类:
其他好文 时间:
2021-04-19 14:39:12
阅读次数:
0
1. 多态 多态 1.1 多态概述 代码示例: 动物类: public class Animal { public void eat(){ System.out.println("动物吃东西"); } } 猫类: 多态的前提有继承/实现关系,所以猫类要继承动物类。 public class Cats ...
分类:
编程语言 时间:
2021-04-16 12:17:46
阅读次数:
0
问题原因:逻辑卷在磁盘下,无法直接mkfs 格式化磁盘 [root@VM_0_8_centos ~]# dmsetup ls vdb1 (252:0) dmsetup remove vdb1 mkfs.xfs /dev/vdb1 ...
分类:
其他好文 时间:
2021-04-16 12:08:51
阅读次数:
0
模拟cpu使用率 脚本: 可以将1个cpu-core打满 k.c #include <stdlib.h> int main() { while(1); return 0; } gcc -o out k.c ./out 查看top可以看到将1个cpu-core打满,可以根据需要,并发启动多个进程将多个 ...
分类:
其他好文 时间:
2021-04-16 12:03:28
阅读次数:
0
import org.junit.Test; public class TestMethods { @Test public void test() { System.out.println("hello world"); } } 1:首先需要导入import org.junit.test这个jar ...
分类:
编程语言 时间:
2021-04-16 12:01:06
阅读次数:
0