python取余

a=-7,b=3,

a % b = 2  #取余 a-((a/b)*b)

a / b= -3 #整除 int(math.floor(-7/3.0))

posted @ 2014-05-14 15:15  磊子  阅读(2274)  评论(0编辑  收藏  举报