百元百鸡 for a in range(0,100): for b in range(0,100): c = 100-a-b if(3*a+5*b+c/3==100) and c%3==0: print(f'公鸡:{a} 母鸡:{b} 小鸡:{c}') 运行截图