打印

这句话怎么译?

这句话怎么译?

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each

when you didn't expect it!是什么意思?
当你没预料到它?   这个expect是译为预料么?

TOP

when you didn't expect it!
这里的意思是,当你原来没有希望它的时候。

You have a nil object when you didn't expect it!
这句话的意思是,你有了一个nil对象,在你原本没有希望(得到)它时。
就是结果出乎你的意料了,不是你期望的那样。

You might have expected an instance of Array.
的意思是,你可能原本希望有一个数组的实例。

The error occurred while evaluating nil.each
的意思是,在求nil.each的值时,错误发生了。

整体的意思是,
你可能本来想有一个数组实例,但不是你希望的那样,你有了一个nil对象。在计算nil.each的值时,错误发生了。


这样对你有帮助吗?希望有帮助。
本帖最近评分记录
  • cclong R币 +3 说得这么详细,非常感谢! 2007-10-1 00:49
Flying Piggy...! 
天地人合一!

TOP

nil.each
简单点说 这个本来不应该是nil的 结果是nil了 于是出现了错误
本帖最近评分记录
  • drive2me R币 +2 谢谢! 2007-10-1 22:31

TOP

2008-11-22 16:42 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61