摘要:
\(\frac{x}{c}=x*\frac{2^n}{c}*\frac{1}{2^n}\) 这样就把除法转换为被除数x乘以一个整数,再右移n位的形式,但是有一个问题,因为右移n位是取下整 右移n位是取下整 例子: -3/2 = 0xFFFFFFFD / 2 =0xFFFFFFFD >> 1 = 阅读全文
摘要:
testObjs = ["1","2","3","1"] # i=0 # for o in testObjs: # testObjs.pop(i) # print(o) # i+=1 j=0 length = len(testObjs) for i in range(0,length): o = t 阅读全文