を追加します。PowerShellは私はこのようなPowerShellで多次元配列を作成したい多次元配列に
$array[0] = "colours"
$array[0][0] = "red"
$array[0][1] = "blue"
$array[1] = "animals"
$array[1][0] = "cat"
$array[1][0] = "dog"
ここに私が試したものです:
$array = @()
$array += "colours"
$array += "animals"
$array[0] # outputs "colours"
$array[1] # outputs "animals"
$array[0] = @()
$array[1] = @()
$array[0] += "red"
$array[0] += "blue"
$array[1] += "cat"
$array[1] += "dog"
$array[0] # outputs "red", "blue" - i expected "colours" here
$array[0][0] # outputs "red"
私は任意のヒントを感謝しています。事前