1、if 语句
if condition1;then command1 elif condition2;then command2 else command3 fi
2、case 语句
case var in pattern1) command1 ;; pattern2) command2 ;; *) ;; esac
3、for 语句
for var in list;do command done
4、while 语句
while codition;do command done
时间: 2024-10-11 22:13:42