TypeError: unhashable type: 'dict'
错误代码:
def update_data(uri_path,value): updateBody = {{ "query": "asdf"}} print(updateBody) update_data("asdf",35)
原因:字典里面必须是key:value形式
这里面,updateBody的子集是是个{},没有key,所以报错
TypeError: unhashable type: 'dict'
错误代码:
def update_data(uri_path,value): updateBody = {{ "query": "asdf"}} print(updateBody) update_data("asdf",35)
原因:字典里面必须是key:value形式
这里面,updateBody的子集是是个{},没有key,所以报错