正在加载图片...
if条件语句 口语法结构 if exprl #如果expr1 为真(返回值为0) then #那么 commands1 #执行语句块 commands1 elif expr2 #若expr1不真,而expr2为真 then #那么 commands2 #执行语句块 commands2 。。。·。 #可以有多个elif语句 else #e1se最多只能有一个 commands4 #执行语句块commands4 fi #if语句必须以单词fi终止 1717 ‰ 语法结构 if expr1 # 如果expr1 为真(返回值为0) then # 那么 commands1 # 执行语句块 commands1 elif expr2 # 若expr1 不真,而expr2 为真 then # 那么 commands2 # 执行语句块 commands2 ... ... # 可以有多个 elif 语句 else # else 最多只能有一个 commands4 # 执行语句块 commands4 fi # if 语句必须以单词 fi 终止 if 条件语句
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有