for循环
1. for 变量 in 值
do
XXXXXX
done
2.for ((i=0;i<10;i++ ))
do
XXXXX
done
while 循环
while [条件]
do
XXXXXX
done
计算用let “sum = i + 1"
2023-10-14 09:10:28
for循环
1. for 变量 in 值
do
XXXXXX
done
2.for ((i=0;i<10;i++ ))
do
XXXXX
done
while 循环
while [条件]
do
XXXXXX
done
计算用let “sum = i + 1"