分类: Python/Ruby
2011-08-23 10:15:02
Returns a Boolean value telling whether EXPR has a value other than the undefined value . If EXPR is not present, $_ will be checked.
exists
Given an expression_r_r that specifies a hash element or array element, returns true if the specified element in the hash or array has ever been initialized, even if the corresponding value is undefined.