有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?
def randomnumber(number):
w=0
for i in range(1,number):
for n in range(1,number):
for m in range(1,number):
if((i!=n) and (n!=m) and (i!=m)):
print("{}{}{}".format(i,n,m))
w=w+1
print("total:{}".format(w))
randomnumber(5)