为什么取不到9这个数字呢,没弄明白这个逻辑
L = []
for n1 in range(1,9):
for n2 in range(0,9):
for n3 in range(0,9):
if n1 == n3:
L.append(100 * n1 + 10 * n2 + n3)
print L
L = []
for n1 in range(1,9):
for n2 in range(0,9):
for n3 in range(0,9):
if n1 == n3:
L.append(100 * n1 + 10 * n2 + n3)
print L
2019-12-19
举报