Questions about Python JSON

Asked 2 years ago, Updated 2 years ago, 42 views

[{'_id': ObjectId('61e199a5ce52e0f0d6abbd13'), 'licanse': '93ba9b48-8c1c-4d04-98cf-8ef9777e60db', 'guildid': '924636653753073694'}]

In , I want to make the value licanse and the value guild into a variable, what should I do?

python json

2022-09-20 11:30

1 Answers

a = json[0]
b = a['licanse']
c = a['guildid']


2022-09-20 11:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.