字典换成has_key判断