jg = float(jg) sy = str(sy) if 'bbl' in sy: sy = float(sy.split('bbl')[0]) amount = jg * sy print('需要的美元金额为:', amount) elif 't' in sy: sy = float(sy.split('t')[0]) amount = jg * sy * 7.14 print('需要的美元金额为:', amount) else: print('请输入正确的原油数量单位')

原油产量换算计算器:快速计算美元金额

原文地址: https://www.cveoy.top/t/topic/lK4l 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录