Python代码实现公园门票计费
x = int(input('请输入购买门票的张数:')) if x < 5: total = 15 * x else: total = 12 * x print('购买门票的费用为:', total)
原文地址: https://www.cveoy.top/t/topic/lLRj 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
x = int(input('请输入购买门票的张数:')) if x < 5: total = 15 * x else: total = 12 * x print('购买门票的费用为:', total)
原文地址: https://www.cveoy.top/t/topic/lLRj 著作权归作者所有。请勿转载和采集!