首页 > 其他 > 详细

ex3-数字和数字计算

时间:2016-08-28 06:28:56      阅读:246      评论:0      收藏:0      [点我收藏+]

代码:

print("I will now count my chickens:")

print("hens", 25+30/6)
print("Roosters", 100-25*3%4)
print("I will count the eggs:")
print(3+2+1-5+4%2-1/4+6)
print("Is it true 3+2<5-7?")
print(3+2<5-7)

print("What is 3+2", 3+2)
print("What is 5-7", 5-7)
print("On,that‘s why it‘s False.")
print("How about some more.")

print("Is it greater?", 5 > -2)
print("Is it greater or equal?", 5 >= -2)
print("Is it less or equal?", 5 <= -2)

 

技术分享

ex3-数字和数字计算

原文:http://www.cnblogs.com/zjcsweb/p/5814230.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!