值列表法将元素添加到关联数组: array_var=( [one]=one-1 [two]=two-2 [three]=three-3 [four]=four-4 [five]=five-5 [six]=six array_var[two]=two-2 array_var[three]=three-3 array_var[four]=four-4 array_var[five]=five-5 array_var[six]=six 关联数组的打印方法跟普通数组用法一样 array_var=( [one]=one-1 [two]=two-2 [three]=three-3 [four]=four-4 [five]=five-5 [six]=six