1. 程式人生 > >python 1~9 任意組合兩位不重複,小於90

python 1~9 任意組合兩位不重複,小於90

for n in range(1,10):
    num = n*10
    for i in range(1,10):
        a = num+i
        b = a/i
        if b==11:
            pass
        elif a > 90:
            pass
        else:
            print(a)