TypeError: the JSON object must be str, not 'bytes'

前端 未结 3 1668
不知归路
不知归路 2020-11-29 02:55

I have the following, very basic code that throws; TypeError: the JSON object must be str, not \'bytes\'

import requests
import json

url = \'my         


        
3条回答
  •  感动是毒
    2020-11-29 03:10

    python3.6+ does this automatically.so your code shouldn't return error in python3.6+

    what's new in python3.6

提交回复
热议问题