ich habe mal wieder eine Frage: Und zwar habe ich eine Klasse mit etlichen integer-werten, und ich möchte nun alle kombinationen dieser werte in bestimmten grenzen durchtesten, etwa so wie hier:
Code: Alles auswählen
test = []
for a_min in range(1,10):
for a_max in range(1,25):
for b_min in range(1,7):
for b_max in range(1,20):
for c_min in range(3,9):
for c_max in range(5,25):
for i in klasse.x.keys():
if klasse.a[i] > a_min and klasse.a[i] < a_max and \
klasse.b[i] > b_min and klasse.b[i] < b_max and \
klasse.c[i] > c_min and klasse.c[i] < c_min:
if klasse.d[i] == 1:
z = z + 1
test.append(z)
[/code]