1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

加入提示语

This commit is contained in:
ipofss 2019-07-24 15:37:05 +08:00 committed by GitHub
parent 7b9ac13782
commit 229377c686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ echo $length #输出5
echo $length2 #输出5
# 输出数组第三个元素
echo ${array[2]} #输出3
unset array[1]# 删除下为1的元素也就是删除第二个元素
unset array[1]# 删除下为1的元素也就是删除第二个元素
for i in ${array[@]};do echo $i ;done # 遍历数组,输出: 1 3 4 5
unset arr_number; # 删除数组中的所有元素
for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没有任何输出内容
@ -283,7 +283,7 @@ for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没
![算数运算符](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-11-22/4937342.jpg)
我以加法运算符做一个简单的示例:
我以加法运算符做一个简单的示例(注意:不是单引号,是反引号)
```shell
#!/bin/bash