python第二节课作业11题(4)问

#手机店打折
print("\n手机店有打折活动")
strday = input("请输入中文星期(如星期一)\n")
intTime = int(input("输入一个0到23的整数\n"))
#判断是否在活动的时间内
if( strday == "星期二" and (intTime >=10 and intTime <= 11)) or (strday == "星期五" and (intTime >= 14 and intTime <= 15)):
print("恭喜你,获得了打折活动的参与资格,快点去")
else:
print("目前时段价格不打折,但会打骨折")
print("3009")

 

 

posted @ 2021-09-13 22:50  孤影化双皮奶  阅读(75)  评论(0)    收藏  举报