ruby and watir学习之_Hash 类
摘要:
Hash类说明函数名称说明示例==判断两个 Hash 是否相等h1 = {"a" => 1, "c" => 2}h2 = { "a" => 1, "c" => 2, 7 => 35 }h1 == h2 » false[ ]返回指定键值对应的对象h = { "a" => 100, "b" => 200 }h["a"] » 100 h["c"] » nil[ ]=向 H 阅读全文
posted @ 2010-07-28 13:22 张飞_ 阅读(1062) 评论(0) 推荐(0) 编辑