题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
for a in range(1,5):
for b in range(1,5):
for c in range(1,5):
if (a != b) and (a != c) and (b != c):
print(a,b,c)
for a in range(1,5):
for b in range(1,5):
for c in range(1,5):
if (a != b) and (a != c) and (b != c):
print(a,b,c)
本文标题:4个数字,组合成三位数
本文链接:https://www.haomeiwen.com/subject/vbknbftx.html
网友评论