python求助#11过不去
查看原帖
python求助#11过不去
919607
JasonTesla楼主2023/3/8 22:17
def hh(a):
    if len(a)<5:
        return "OMG>.< I don't know!"
    else:
        if a[:5]=="miao." and a[-5:]!="lala.":
            return "Rainbow's"
        elif a[:5]!="miao." and a[-5:]=="lala.":
            return "Freda's"
        else:
            return "OMG>.< I don't know!"
a=int(input())
s=[]
for i in range(a):
    n=input().strip()
    s.append(hh(n))
for i in s:
    print(i)```
2023/3/8 22:17
加载中...