sairate 7df250638d chore: 添加项目基础结构和示例代码
- 创建 .idea 目录和相关配置文件,设置项目结构
- 添加多个课堂成果示例代码,涵盖不同主题和功能
- 创建和配置 .gitignore 文件,忽略特定文件和目录
2025-07-05 09:36:00 +08:00

33 lines
1.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

print("亲爱的上帝朋友们:")
print("为回馈大家对本店的大力支持本店将开展为期3天的促销活动。")
print("我们将指派P仔为促销折扣官。")
print()
kind = input("您要查询的品类是?请输入'水果'或者'肉类'或者'零食'")
if kind == "水果" :
answer = input("查询'水果种类'还是'折扣力度'")
if answer == "水果种类" :
print("水果种类有:香蕉,苹果,桃子,樱桃,榴莲,李子")
elif answer == "折扣力度" :
print("全场水果九折优惠")
else:
print("...没理解您的问题,请重新查询...")
elif kind == "肉类" :
answer = input("查询'肉类种类'还是'折扣力度'")
if answer == "肉类种类" :
print("肉类种类有:猪五花,羊肉,牛排,鸡腿,鸡翅,鱼肉")
elif answer == "折扣力度" :
print("全场肉类八折优惠")
else:
print("...没理解您的问题,请重新查询...")
elif kind == "零食":
answer = input("查询'零食种类'还是'折扣力度'")
if answer == "零食种类" :
print("零食种类有:酸奶,黄桃干,巧克力威化,奥利奥,薯片,鱿鱼丝,AD钙奶")
elif answer == "折扣力度" :
print("全场零食七折优惠")
else:
print("...没理解您的问题,请重新查询...")
else:
print("其余商品原价出售")
print()
print("查询完毕,祝您购物愉快,欢迎随时来找我玩哟~")