#coding:utf-8
#1,2,3,4四个数,选取三个数组合,三个数要求互不相同
import copy
def Remove(List,i):
a=copy.deepcopy(List)
a.remove(i)
return a
numlist=[1,2,3,4]
num=0
for i in numlist:
a=Remove(numlist,i)
for j in a:
b=Remove(a,j)
for k in b :
print (i*100+j*10+k)
num=num+1
print ('符合要求的个数是%d' %num)