我想知道为什么当我进入这个...;
2.0.0-p247 :046 > @possible_places
=> {:a1=>nil, :a2=>nil, :a3=>nil}
2.0.0-p247 :047 > @possible_places[:a1]
=> nil
2.0.0-p247 :048 > @possible_places[:a1]=nil?
=> false
为什么它返回假?它不应该返回true吗?说价值实际上是零?此外,它将 nil 值替换为 false 值。谁能给新手解释一下?
2.0.0-p247 :049 > @possible_places
=> {:a1=>false, :a2=>nil, :a3=>nil}
2.0.0-p247 :050 > @possible_places[:a1]
=> false