• 微信公众号：美女很有趣。 工作之余，放松一下，关注即送10G+美女照片！

# 第二章读书笔记

3小时前 6次浏览

money_all=56.00+72.00+88.50+26.30+68.50
money_all_str=str(money_all)
print(“商品总金额为：”+money_all_str)
money_real=int(money_all)
money_real_str= str(money_real)
print(“实收金额为：”+money_real_str)
print(“3134”)

python = 95
english = 92
c = 89
sub = python – c
avg = (python + english + c)/3
print(“Python课程和C语言课程的分数之差：”+str(sub)+”分n”)
print(“3门课的平均分：”+str(avg)+”分”)
print(“3134”)

python = 95
english = 92
c = 89
print(“python = ” +str(python) + “english = ” +str(english) + ” c = ” +str(c) + “n”)
print(“python < english的结果：” + str(python < english))
print(“python > english的结果：” + str(python > english))
print(“python == english的结果：” + str(python == english))
print(“python != english的结果：” + str(python != english))
print(“python <= english的结果：” + str(python <= english))
print(“english >= c的结果：” + str(python >= c))
print(“3134”)

print(“n手机店正在打折，活动火热进行中…”)
strweek = input(“请输入中文星期:”)
intTime = int(input(“请输入时间中的小时：”))
if (strweek == “星期二” and (intTime >= 10 and intTime <= 11)) or (strweek == “星期五” and (intTime >=14 and intTime <= 15)):
print(“恭喜您，获得了折扣活动参与资格，快点选购吧！”)
else:
print(“对不起，本次活动已结束，期待下次活动……”)
print(“3134”)

fp=open(r’C:Users饶伟超Desktopmot.txt’,’a+’)
print(“不要把自己当一回事，要把做的事当一回事。”,file=fp)
fp.close()

#3134