python取余

a=-7,b=3,

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

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

原文地址:https://www.cnblogs.com/caolei715/p/3727792.html