def func(numbers):
for a in numbers:
for b in numbers:
for c in numbers:
for d in numbers:
if a!=b and a!=c and a!=d and b!=c and b!=d and c!=d and d%2==0:
print(a%10001000+b%100100+c%1010+d)
func(5,6,3,9)
如上,这是个输入四个数并输出它们所能组成的所有偶数的函数,5,6,3,9是举的例子。请问,如何才能只输出最大的偶数?
你这啥玩意 要是求5, 6,3, 9这几个为什么这么多for循环