天天看點

練習題1有1、2、3、4個數字,能組成多少個互不相同且無重複數字的三位數?都是多少?

有1、2、3、4個數字,能組成多少個互不相同且無重複數字的三位數?都是多少?

num = [1,2,3,4]

for a in num:

for b in num:

for c in num:

if a != b and a != c and b != c :

print(a,b,c)