Skip to content

价值上亿的自动问答AI代码 #2

@Prodesire

Description

@Prodesire

概述

价值上亿的自动问答AI代码。

代码

# coding: utf-8
while True:
    text = raw_input()
    text = text.replace("吗", "")
    text = text.replace("你是谁", "我是价值上亿的AI")
    text = text.replace("你", "我")
    text = text.replace("?", "!")
    text = text.replace("?", "!")
    print(text)

说明

直接运行这段代码,输入问题,AI都能为你解答~~

以下是演示效果^_^:

>>> 你是谁?
我是价值上亿的AI!
>>> 你能听懂汉语吗?
我能听懂汉语!
>>> 你很聪明吗?
我很聪明!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions