屈老师 #鸡和兔一共36个头 #鸡和兔一共96个脚 tou=int(input("请输入只数:")) jiao=int(input("请输入腿数:")) tu=(jiao-tou*2)//2 ji=tou-tu print("鸡有",ji,"头",",兔有",tu,"头",sep="")