In Python 3, to load json previously saved like this:
json.dumps(dictionary)
the output is something like
{"('Hello',)": 6, "('Hi',)": 5}
when I use
json.loads({"('Hello',)": 6, "('Hi',)": 5})
it doesn't work, this happens:
TypeError: the JSON object must be str, bytes or bytearray, not 'dict'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…