python简单源码,鸡兔同笼源代码:
a=120
b=350
for x in range(1,a):
y=a-x
if 2*x+4*y==b:
print("鸡有"+str(x)+"只,兔有"+str(y)+"只")
鸡有65只,兔有55只
欢迎大家交流Python
回复