Dart 关系运算符 == != > < >= <=
Dart Flutter免费视频教程、课件、源码下载地址 https://www.itying.com/goods-1101.html
Flutter仿京东商城项目实战视频教程 https://www.itying.com/goods-1120.html
Dart 关系运算符: == != > < >= <=
void main(){
int a=5;
int b=3;
print(a==b); //判断是否相等
print(a!=b); //判断是否不等
print(a>b); //判断是否大于
print(a<b); //判断是否小于
print(a>=b); //判断是否大于等于
print(a<=b); //判断是否小于等于
if(a>b){
print('a大于b');
}else{
print('a小于b');
}
}
1 回复