程序报错 LoadError: BoundsError: attempt to access 0-element Vector{String} at index [1]

请教大佬,程序报错


这是什么意思?

数组越界。julia 的索引从 1 开始。

你的元素类型为String的向量没有元素,但是你的程序访问了它。“attempt to access 0-element Vector{String)”,不是索引值从0开始的问题,如果你的索引是从0开始的话,julia会提示 ……at index[0]

确实是这样的,我明白了谢谢大佬