python 计算字典value值的和

my_dict = {'data1':100,'data2':-54,'data3':247}  
print(sum(my_dict.values()))
原文地址:https://www.cnblogs.com/sea-stream/p/9987270.html