PHP AI 核心代码,估值十个亿!
/**
* AI核心代码,估值十个亿
* Created by PhpStorm.
* User: sunxyw
* Date: 2018/12/14
* Time: 14:37
*/
/**
* @param string $input 输入内容
* @author sunxyw <xy2496419818@gmail.com>
* @return string 回应信息
*/
function handleInput($input)
{
$input = str_replace('吗', '', $input);
$input = str_replace('?', '!', $input);
$input = str_replace('?', '!', $input);
$input = str_replace('你', '我', $input);
$input = str_replace('吧', '我', $input);
return (string)$input;
}
while (!feof(STDIN)) {
$input = fread(STDIN, 1024);
echo handleInput($input);
}
请容许我当一次标题党
本作品采用《CC 协议》,转载必须注明作者和本文链接
高认可度评论:
我估值至少是1000亿美元
@lovecn 没有啊,代码里不是写上了吗
666啊胸带,这个圈搞怪的一股清流