可以使用单个%w指令定义多维数组吗?
例如:
the_array = %w(one two three{some separator}four five{some separator}six seven eight nine)
我需要这个来构建一个连续可变数量的数组:
the_array = [
    ['one', 'two', 'three'],
    ['four', 'five'],
    ['six', 'seven', 'eight', 'nine']
]
    可以使用单个%w指令定义多维数组吗?
例如:
the_array = %w(one two three{some separator}four five{some separator}six seven eight nine)
我需要这个来构建一个连续可变数量的数组:
the_array = [
    ['one', 'two', 'three'],
    ['four', 'five'],
    ['six', 'seven', 'eight', 'nine']
]