这是给我带来问题的代码:
url = 'https://xxxxxxxxx' # correct website is in code
datos = {"meta_data": {"id":8888}, {"key":"Serial_number"}, {"value":self.variable}}
datos_json = json.dumps(datos)
headers2 = {'Authorization': 'Basic xxxxxxxxxxxxx'} #correct key is in code
response = requests.request('POST', url = url, headers = headers2, data = datos_json)
我得到错误:
SyntaxError: ':' expected after dictionary key
我尝试了“datos”的所有语法组合