-2
Ruby中的以下代码片段未编译。任何人都可以帮我知道为什么?我已经呆了好几个小时,但没有结果。 :(这里有什么问题?
代码片段:
for i in 0..followers.length
for j in 0..followers[i].length
end
end
为什么这段代码不断抛出一个错误说:
the .length is undefined for nil:NilClass(NoMethodError)