說我有Bash中 declare -A a
declare -A b
a[xz]=1
b[xz]=2
a[zx]=3
b[zx]=4
兩種締陣列我想要做這樣的事情 for arr in ${a[@]} ${b[@]}; do echo ${arr[zx]}; done
,並在輸出得到3和4 但我得到 $ for arr in ${a[@]} ${b[@]}; do echo ${
你如何在水晶中創建關聯數組? 在這種情況下,我需要一個布爾數組來配置多個類。 例如: arr = ??? # what do i place here to make it work ?
arr[:download] = true
arr[:parse] = true
myClass.new(arr)
我不希望啓動gessing是不同的值是隨着時間的pases(爲下載ARR [0]或常用
我想創建並初始化一個多維數組,其中第二維但沒有值的已知可能鍵。 這個數組將存儲event_ids(動態填充)和每個event_id一個數組有四個不同的計數(也動態填充)。 結構,我想創建 Array
(
[0] => Array =================> This index will be the event_id
(
[invitation_not