преобразование строковой ключа в int py
d = {'1':'145' , '2':'254' , '3':'43'}
d = {int(k):v for k,v in d.items()}
Difficult Dormouse
d = {'1':'145' , '2':'254' , '3':'43'}
d = {int(k):v for k,v in d.items()}