while 1 == 1:
x = input()
print("AI:",x.replace("?","!").replace("吗","").replace("?","!"))
if x == "再见":
break
效果๑乛◡乛๑:
PS D:> python testAI.py
在吗?
AI: 在!
你好!
AI: 你好!
能听懂中文吗?
AI: 能听懂中文!
真的吗?
AI: 真的!
再见
AI: 再见

版权声明:除特殊说明,文章均为博主 去吐槽 原创文章,转载请注明原文出处。