Answer the question
In order to leave comments, you need to log in
How to assign a value to a specific dictionary key?
Good day.
Faced a problem when changing the value in the dictionary.
There is a dictionary with this structure
{
"1": {
"nonce": 1510009763,
"A": {
},
"B": {
},
"C": {
},
"D": {
}
},
"5": {
"nonce": 1510009763,
"A": {
},
"B": {
},
"C": {
},
"D": {
}
},
"15": {
"nonce": 1510009763,
"A": {
},
"B": {
},
"C": {
},
"D": {
}
},
}
if int(self.exportData[keyFirst]['nonce']) + (int(keyFirst) * 60) <= int(time.time()):
self.exportData[keyFirst]['nonce'] = int(time.time())
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question