匿名用户
1级
2018-08-22 回答
# coding=utf-8
import uniout
goods_1 = {
'goods_id': '5',
'goods_name': '电',
'goods_money': 23333,
'goods_weight': 29.22
}
goods_2 = {
'goods_id': '6',
'goods_name': '风',
'goods_money': 253333,
'goods_weight': 59.22
}
goods_3 = {
'goods_id': '7',
'goods_name': '扇',
'goods_money': 13333,
'goods_weight': 19.22
}
# 输出三个商品的 总价格及价格的数据类型、总重量及重量的数据类型。
total_price = goods_1['goods_money'] + goods_2['goods_money'] + goods_3['goods_money']
total_wei = goods_1['goods_weight'] + goods_2[&#