- 创建 .idea 目录和相关配置文件,设置项目结构 - 添加多个课堂成果示例代码,涵盖不同主题和功能 - 创建和配置 .gitignore 文件,忽略特定文件和目录
15 lines
436 B
Python
15 lines
436 B
Python
#请在这里编写代码
|
||
price_in = int(input("请输入您购买商品的总价:"))
|
||
price1 = price_in * 0.9
|
||
if price_in >= 300:
|
||
price2 = price_in - 40
|
||
else:
|
||
price2 = price_in
|
||
if price_in < 500:
|
||
price3 = price_in
|
||
else:
|
||
if price_in < 1000 :
|
||
price3 = price_in - 88
|
||
else:
|
||
price3 = price_in - 188
|
||
print(f'原价是:{price_in},三种方案优惠后价格依次为:{price1},{price2},{price3}') |