opencv 閾值分割的具體使用
阿新 • • 發佈:2020-07-09
-
算數運算子:+,-,*,/,%,++,--
-
賦值運算子:=
-
關係運算符:>,<,>=,<=,==,!=,instanceof
-
邏輯運算子:&&(與),||(或),!(非)
-
位運算子:&,|,^,~,>>,<<,>>>(瞭解)
-
條件運算子:? :
-
拓展賦值運算子:+=,-=,*=,/=
public static void main(String[] args) {
//二級運算子
//Ctrl + D:複製當前行到下一行
int a = 10;
int b = 20;
int c = 30;
int d = 40;
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println((double)a/b);//用到強制轉換
}
public class Demo02 {
public static void main(String[] args) {
long a = 123123123123123L;
int b = 123;
short c = 10;
byte d = 8;
System.out.println(a+b+c+d);//long
System.out.println(b+c+d);//int
System.out.println(c+d);//int
}
}
public class Demo04{
public static void mian(String[] args) {
//++ --自增,自減,一元運算子
int a = 3;
int b = a++;//先給b賦值,然後a自己在偷摸的自增一個
int c = ++a;//a先自增一個,再賦值給c
}
}