📜  1 2 3 4 5 python代码示例的组合

📅  最后修改于: 2022-03-11 14:45:14.710000             🧑  作者: Mango

代码示例1
a=int(input("Enter first number:"))
b=int(input("Enter second number:"))
c=int(input("Enter third number:"))
d=[]
d.append(a)
d.append(b)
d.append(c)
for i in range(0,3):
    for j in range(0,3):
        for k in range(0,3):
            if(i!=j&j!=k&k!=i):
                print(d[i],d[j],d[k])