用户:
UMS查看:0 回复:0 评论:0 创建时间:2020-05-17T14:28:52
【作品展示】

【作品介绍】
鸡 兔 同 笼
【作品源代码】
def jttl(h,t):
if (h*4-t)%2==0 or (t-h*2)%2==0:
print("鸡有{}只,兔有{}只".format(h-(h*4-t)//2, (h*4-t)//2))
else:
print("无解")
jttl(35,94)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn