鸡兔一共有50只,脚一共有160只,问鸡和兔各多少只,要求鸡兔至少一样一只
收起
for j in range(1, 50): t = 50 - j if 2 * j + 4 * t == 160: print(f"鸡有{j}只,兔有{t}只") break
报告相同问题?