python基础.ZZ01

1、Python判断是否json是否包含一个key_Python_kongjunlongaa的博客-CSDN博客.html(https://blog.csdn.net/konglongaa/article/details/79480530

jsonObject 是个json
if (key in jsonObject) :
    print ''
else:
    print '没有'

  ZC:这个问题是在 tensoeflow浣熊教程里面碰到的(G:\TensorFlow_ZZ\models_copy\research\object_detection_zc_mhsy\dataset_tools\create_pascal_tf_record.py)

2、

3、

4、

5、

 

posted @ 2020-03-26 12:43  pythonz  阅读(146)  评论(0)    收藏  举报