码迷,mamicode.com
首页 > 编程语言 > 详细

Python dict.has_key() 的说明

时间:2019-10-01 10:04:23      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:官方   rar   使用   tps   doc   ict   http   相关   nbsp   

        Python dict.has_key()方法仅限于Python 2.x使用,对于3.x,此方法已废除。

        对于Python 2.x中的dict.has_key()方法,官方文档的说明如下:https://docs.python.org/2/library/stdtypes.html#mapping-types-dict

        对于Python 3.x中的dict相关方法,官方文档的说明如下:https://docs.python.org/3.7/library/stdtypes.html#mapping-types-dict, 可以发现dict.has_key()方法已经被废除了。

Python dict.has_key() 的说明

标签:官方   rar   使用   tps   doc   ict   http   相关   nbsp   

原文地址:https://www.cnblogs.com/r0xFED/p/11614497.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!