- nums = [i for i in range(1,10)]
-
- min_list = nums[:3]
- max_list = nums[-3:]
- max_list.sort(reverse=True)
-
- min = int(''.join(map(str, min_list)))
- max = int(''.join(map(str, max_list)))
-
- result = []
- for x in range(min,max+1):
- for y in range(min,max+1):
- for z in range(min,max+1):
- if 2*x==y and 3*x==z and 3/2*y==z:
- result.append(x)
- result.append(y)
- result.append(z)
-
- print(result)
我疯狂for for for