class Program { static void Main(string[] args) { List<People> peoples = new List<People> { new People{ ID=1,Name="xxx" }, //new People{ ID=1,Name="xx ...
分类:
其他好文 时间:
2020-11-19 12:29:36
阅读次数:
5
代码:publicstaticvoidmain(String[]args){int[][]arr={{10,20,50},{30,40,80},{15,100}};int[]arr2=newint[(arr[0].length+arr[1].length+arr[2].length)];intsum=0;//定义一个变量用于累加求和intindex=0;//定义一个下标用于给新数组赋值//循环输出
分类:
编程语言 时间:
2020-11-19 12:23:06
阅读次数:
8
i在式子中参与运算一次就自加1 2+(i)+i+1=6 public static void main(String[] args) { int a = 10; int b = 20; change(c,b); System.out.println(c);// a = 10 System.out.p ...
分类:
其他好文 时间:
2020-11-19 12:20:48
阅读次数:
4
为了搞unity的热更新,需要用到lua. lua是什么东西?一种脚本语言。脚本语言一般轻量,简单. js大家都很熟悉吧。因为现在我拿它与lua对比 相同点 类型都差不多,追求简单。 string/string number/number boolean/boolean function/funct ...
分类:
Web程序 时间:
2020-11-19 12:15:27
阅读次数:
12
使用Turbine监控集群监控,在测试的时候出现了一些问题 http://localhost:9003/turbine.stream 没有获取到数据 http://localhost:9003/hystrix/monitor 监控界面一直loading 后台报Property or field 'd ...
分类:
移动开发 时间:
2020-11-19 12:14:31
阅读次数:
16
1.在项目springcloud下,新建微服务product-data-service 2.修改pom.xml文件 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche ...
分类:
编程语言 时间:
2020-11-19 12:04:49
阅读次数:
7
(1)String str1=new String("A"+"B") ; 会创建几个对象 ? "a"在字符串常量池创建,这是第一个对象 "b"在字符串常量池创建,这是第二个对象 “a”+"b"组合"ab"在字符串常量池创建,这是第三个对象 new String(),在堆中分配内存,里面存着这字符串" ...
分类:
编程语言 时间:
2020-11-19 12:03:53
阅读次数:
5
1 map有两种初始化的方法 package main import "fmt" func main(){ // 方法一,先声明map,再使用make函数创建一个非nil的map,nil map不能赋值,最后给已声明的map赋值 var m1 map[string]interface{} m1 = ...
分类:
其他好文 时间:
2020-11-18 12:58:23
阅读次数:
11
#一、java方法 ##1. 方法的写法(三种) ① 没有返回值,没有参数列表(void) ② 没有返回值,有参数列表 ③ 有返回值,有参数列表(return) ##2. 方法的声明 权限修饰符 返回值类型 方法名([形参列表]){ 方法体 } ##3. 方法的意义 便于抽取代码,提高代码复用性 # ...
分类:
编程语言 时间:
2020-11-18 12:37:21
阅读次数:
10
tips 1.结构体中包含数组,在使用之前,必须实例化,并规定数组的长度; 2.new 出来的长度并不互相影响,new struct test { public string[] strs; } test m_test = new test(); m_test.strs = new string[5 ...
分类:
编程语言 时间:
2020-11-18 12:29:14
阅读次数:
5