Python计算货物运费程序 - 简单易用
def calculate_freight():\n p = 27.5 # 单价\n d = float(input("请输入运输距离(公里):"))\n w = float(input("请输入货物重量(吨):"))\n t = w * d * p # 总运费\n print("总运费为:", t, "元")\n\ncalculate_freight()
原文地址: https://www.cveoy.top/t/topic/psK8 著作权归作者所有。请勿转载和采集!