用户:
YHY汤圆查看:0 回复:0 评论:0 创建时间:2022-04-11T13:25:44
【作品展示】

【作品介绍】
可以计算鸡兔同笼问题
【作品源代码】
#开始进入Python的世界
for __count in range(11111110):
head = eval(input('head'))
feet = eval(input('feet'))
if (head >= feet):
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
print('Hello,喵', '你脑子有点问题')
rabbit = int(((feet - 2 * head) / 2))
hen = int((head - rabbit))
print('兔子的数量:', rabbit, '鸡的数量:', hen)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn