AcWing 670. 动物 - Python3
原题链接
简单
作者:
KYCygni
,
2021-03-07 15:08:22
,
所有人可见
,
阅读 263
Python3 代码
a = input()
b = input()
c = input()
i = ["vertebrado", "invertebrado"]
j = ["ave", "mamifero", "inseto", "anelideo"]
k = ["carnivoro", "onivoro", "herbivoro", "hematofago"]
if a == i[0]:
if b == j[0]:
if c == k[0]:
an = "aguia"
elif c == k[1]:
an = "pomba"
elif b == j[1]:
if c == k[1]:
an = "homem"
elif c == k[2]:
an = "vaca"
elif a == i[1]:
if b == j[2]:
if c == k[3]:
an = "pulga"
elif c== k[2]:
an = "lagarta"
elif b == j[3]:
if c == k[3]:
an = "sanguessuga"
elif c == k[1]:
an = "minhoca"
print (an)