1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

Update Shell.md

This commit is contained in:
guide 2020-10-31 09:50:20 +08:00
parent 6e9954f016
commit 4119ddfaa3

View File

@ -262,7 +262,7 @@ echo $length2 #输出5
echo ${array[2]} #输出3
unset array[1]# 删除下标为1的元素也就是删除第二个元素
for i in ${array[@]};do echo $i ;done # 遍历数组,输出: 1 3 4 5
unset arr_number; # 删除数组中的所有元素
unset array; # 删除数组中的所有元素
for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没有任何输出内容
```