需求 判断一个键在不在字典的键中 示例 登录后复制 d = {"name":"tom","age":16,"gender":"男"} b = "age" in d.keys() print(b) 1.2.3.4.5. 原创作者: u_13137233 转载于: https://blog.51cto.com/u_13137233/11819677