搜索结果
查询Tags标签: statement1,共有 3条记录-
javascript条件语句
if…else语句if (condition) {statement1 } else {statement2 }condition为true时执行statement1,否则执行statement2if…else if…else语句if (condition1) {statement1 } else if (condition2) {statement2 } else {statement3 }condition1为true时执行statement1,con…
2022/5/1 12:42:39 人评论 次浏览 -
shell脚本---流程控制语句(if、for)
一、if条件判断(1)单分支结构 if 条件判断表达式; thenstatement1…… fi(2)双分支结构 if condition; thenstatement1 elsestatement2 fi(3)多分支结构 if condition; thenstatement1 elif condition; thenstatement2…… elsstatementn fi 二、for循环 for 变量…
2021/11/19 7:14:36 人评论 次浏览 -
shell脚本---流程控制语句(if、for)
一、if条件判断(1)单分支结构 if 条件判断表达式; thenstatement1…… fi(2)双分支结构 if condition; thenstatement1 elsestatement2 fi(3)多分支结构 if condition; thenstatement1 elif condition; thenstatement2…… elsstatementn fi 二、for循环 for 变量…
2021/11/19 7:14:36 人评论 次浏览