Python程序计算货物运费:根据重量和距离计算运费
weight = float(input("请输入货物重量(吨):")); distance = float(input("请输入运输距离(公里):")); unit_price = 27.5; total_cost = weight * distance * unit_price; print("总运费为:", total_cost)
原文地址: https://www.cveoy.top/t/topic/psLI 著作权归作者所有。请勿转载和采集!