for zhou in range(5):
for zhang in range(8):
if 3*zhou +4*zhang==25:
print 2*zhang+zhou, zhou+zhang, zhang, zhou
break
结果:11 7 4 3
for zhou in range(5):
for zhang in range(8):
if 3*zhou +4*zhang==25:
print 2*zhang+zhou, zhou+zhang, zhang, zhou
break
结果:11 7 4 3