You can use list and dict comprehensions.
buyers = [
{'1A' : '1', '1B' : '1', '1C' : '2'},
{'2A' : '2', '2B' : '4', '2C' : '3'}
]
result = [
{key: int(val) for key, val in d.items()}
for d in buyers
]
print(result)
Output
[{'1A': 1, '1B': 1, '1C': 2}, {'2A': 2, '2B': 4, '2C': 3}]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…