import random #导入随机库
class Robot():
def __init__(self):
print('*'*18+'启动成功'+'*'*18)
def chat(self):
#print('hello')
hao=['你好','Hi','Hello','hi','hello','好久不见']
zai=['再见','Bye','bye','Bye-Bye','Byebye','再会','88','下次见']
while True:
a=input('你说:')
if a in hao:
print('小姬说:'+random.choice(hao))
elif a in zai:
print('小姬说:'+random.choice(zai))
break
else:
print('小姬说:我听不懂')
robot=Robot()
#print(type(robot))
robot.chat()