Pymongo IndentationError:

时间:2018-08-16 08:46:09

标签: python mongodb pymongo

我有此错误...有人可以告诉我为什么吗? 预先感谢!

client = MongoClient('localhost', 27017)#CONNECT TO MONGODB

try:

    db = client.data
    collection = db.Inel
    with open("C:\\Users\\Administrator\\Desktop\\python\\RAD_HORA\\json\\" + nombrejson) as f:
       json = json.load(f)
       a = collection.insert(json)

except arcpy.ExecuteError:

    db = client.data
    collection = db.Inel
    with open("C:\\Users\\Administrator\\Desktop\\python\\RAD_HORA\\json\\" + nombrejson) as f:
       json = json.load(f)
       a = collection.insert(json)

unindent与任何外部缩进级别不匹配

0 个答案:

没有答案