key_name in dict 返回一个bool值 是python2,老版本的用法,已经被废除 dict.has_key("key_name") 转载于:https://www.cnblogs.com/maxiaohei/p/8127410.html