Python数学计算,编程练习题实例一

Python练习题问题如下:
简述:这里有四个数字,分别是:1、2、3、4
提问:能组成多少个互不相同且无重复数字的三位数?各是多少?
for bai in range(1,5):
    for shi in range(1,5):
        for ge in range(1,5):
            if  bai!=shi and bai!=ge and shi!=ge:
                print(bai,shi,ge)
            else:
                continue
 
原文地址:https://www.cnblogs.com/xusuns/p/8215580.html