您现在的位置是:主页 > news > 做调查问卷赚钱哪个网站好/申请网址怎么申请的

做调查问卷赚钱哪个网站好/申请网址怎么申请的

admin2025/6/17 10:41:39news

简介做调查问卷赚钱哪个网站好,申请网址怎么申请的,北京住房和城乡建设部网站,网络规划设计师资料按照一下要求定义一个游乐园门票类,并尝试计算2个成人1个小孩子平日票价 1.平日票价100元 2.周末票价为平日票价120% 3.儿童半价class Ticket:pice 100weekend pice*1.2picedef compute(self,adultcount,childcount,isweekend): if(isweekendno):total int(adult…

做调查问卷赚钱哪个网站好,申请网址怎么申请的,北京住房和城乡建设部网站,网络规划设计师资料按照一下要求定义一个游乐园门票类,并尝试计算2个成人1个小孩子平日票价 1.平日票价100元 2.周末票价为平日票价120% 3.儿童半价class Ticket:pice 100weekend pice*1.2picedef compute(self,adultcount,childcount,isweekend): if(isweekendno):total int(adult…
'''
按照一下要求定义一个游乐园门票类,并尝试计算2个成人+1个小孩子平日票价
1.平日票价100元
2.周末票价为平日票价120%
3.儿童半价'''class Ticket:pice = 100weekend = pice*1.2+picedef compute(self,adultcount,childcount,isweekend): if(isweekend=='no'):total = int(adultcount)*self.pice+int(childcount)*(self.pice/2)print("应该支付总金额:",str(total))elif(isweekend=='yes'):total = int(adultcount)*self.weekend+int(childcount)*(self.weekend/2)print("应该支付总金额:",str(total))else:print("输入有误")while True:print("welcome to 迪斯尼 ")adult = input("请输入成年人数量")child = input("请输入小孩数量")isweekend = input("是否是周末?yes/no")t = Ticket()t.compute(adult,child,isweekend)

 

转载于:https://www.cnblogs.com/pengpengzhang/p/8707933.html