bash shell 遍历一个数组 var[@] 数组的一个元素 var=("first" "second" "three") for str in ${var[@]}; do echo $str done