如题所述
num = 0ls = [1, 2, 3, 4, 5]for i in ls:
for j in ls:
for p in ls:
if i == j or j == p or i == p:
continue
else:
num += 1print('能组成%d个' % num)