[填空题]门票正常价格15元一张,5张以上 (不包含5张)12元一张以下为“公园购票计费py”的代码。 x= intinput(“请输入购买门票的张数:")) if total=12*x total=15*x print(“购买门票的费用为:"total)
x= int(input(“请输入购买门票的张数:")) if x<5: total=15x else: total=12x print(“购买门票的费用为:",total)
原文地址: https://www.cveoy.top/t/topic/ybj 著作权归作者所有。请勿转载和采集!