Konversi tombol string ke int py

d = {'1':'145' , '2':'254' , '3':'43'}
d = {int(k):v for k,v in d.items()}
Difficult Dormouse