This is a program to print all possible combinations of three different digits from 1 to 4

for i in range(1, 5): for j in range(1, 5): for k in range(1, 5): if i != j and j != k and i != k: print(i, j, k)

#!usrbinpython# -- coding UTF-8 -- for i in range15 for j in range15 for k in range15 if i != k and i != j and j != k print ijk

原文地址: https://www.cveoy.top/t/topic/Kbx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录