import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.JSONOb ...
分类:
编程语言 时间:
2020-02-14 10:39:12
阅读次数:
88
不知道为啥这个题总是WA 找了好长时间也没找出来 求大佬帮忙看看 #include<iostream> #include<iomanip> #include<cstring> #include<sstream> #include<algorithm> #include<cstdio> #includ ...
分类:
其他好文 时间:
2020-02-14 01:16:56
阅读次数:
63
上面是第5讲4:5511-构造thread的时候,传入stacksize代表该线程占用的stack大小如果没指定,默认是0,0代表会忽略该参数,该参数会被jni函数使用;该参数和平台有关5:5411-所以stacksize一般用虚拟机参数指定。6:5014-join..线程A里调用线程B, 即B.j ...
分类:
编程语言 时间:
2020-02-14 00:30:07
阅读次数:
106
通过命令行执行 创建superuser 账户 @manager.option('-n', '-name', dest="name") @manager.option('-p', '-password', dest="password") def createsuperuser(name, passw ...
分类:
其他好文 时间:
2020-02-13 23:01:13
阅读次数:
99
class CQueue { private Stack<Integer> stack1; private Stack<Integer> stack2; public CQueue() { this.stack1 = new Stack<>(); this.stack2 = new Stack<>( ...
分类:
其他好文 时间:
2020-02-13 21:17:39
阅读次数:
83
Exception: 所有异常对象的基类。 SystemException:运行时产生的所有错误的基类。 IndexOutOfRangeException:当一个数组的下标超出范围时运行时引发。 NullReferenceException:当一个空对象被引用时运行时引发。 InvalidOpera ...
分类:
编程语言 时间:
2020-02-13 19:32:00
阅读次数:
101
class Myexception(Exception): def __init__(self,message): self.message=message def __str__(self): return self.message try: raise Myexception("我错了") ex ...
分类:
其他好文 时间:
2020-02-13 19:24:35
阅读次数:
53
一、option类型 定义:通过该类型可以有效的避免空指针异常 1 def func(a: Double, b: Double): Option[Double] = { 2 if (b != 0) { 3 //没错的情况下 返回值用Some函数包起来 4 Some(a / b) 5 } else { ...
分类:
其他好文 时间:
2020-02-13 19:06:21
阅读次数:
59
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4 at com.wanglx.duotai.Practice_duotai.main(Prac ...
分类:
编程语言 时间:
2020-02-13 15:07:49
阅读次数:
112
此语句的作用是显示异常信息,便于调试和改进程序。 except Exception as err: print(err) #异常处理'''异常处理格式try: 程序except Exception as 异常名称: 异常处理部分'''try: for i in range(0,10): print( ...
分类:
其他好文 时间:
2020-02-13 14:52:28
阅读次数:
65