ValueError: malformed string using ast.literal_eval

前端 未结 2 489
有刺的猬
有刺的猬 2020-12-29 07:56

I\'m doing a loop to get json api, here is what I have in my loop:

response_item = requests.request(\'GET\',url_item,params=None,verify=False)
response_item          


        
2条回答
  •  旧时难觅i
    2020-12-29 08:56

    ast.literal_eval is safe with SQL injection if you are using this. because when an unwanted charter is inserted it will show Syntex error which prevents from an injection.

提交回复
热议问题