我今天在写一个代码的时候,两个真值判断为假
def INSERTION_SORT(A):
for j in range(len(A)-1):
key = A[j]
i = j+1
print("***********")
print(j >= 0)
print(key > A[i])
print(j >= 0 & key > A[i])
A = [5,2,4,6,1,3]
INSERTION_SORT(A)
True
True
False
True
False
False
True
False
False
True
True
False
True
False
False
[Finished in 52ms]