3

这个电视剧用一个截图说明 AI 的本质是什么

 2 years ago
source link: https://www.v2ex.com/t/870385
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

这个电视剧用一个截图说明 AI 的本质是什么

15 条回复    2022-08-03 14:33:28 +08:00

churchill      5 小时 12 分钟前

不应该是满屏幕乱滚的英文吗

arfaWong      5 小时 11 分钟前

yyysuo      5 小时 5 分钟前

哈哈,一猜就是天才基本法。

dcsuibian      5 小时 5 分钟前   1

#人工智能机器人
print('你好呀!') # 打个招呼

while True:
a=str(input('')) # 变量命名有些随便

# 人工智能核心算法!!!
b=a.replace('吗','呢')
b=b.replace('?','!')
b=b.replace('你','我')

# 输出了
if b=='': # 退出聊天
print('拜拜!')
break
elif b==a: # 问题无法作出有效回答
print('我没听懂你在说什么,换个问题试试?')
c+=1
else: # 回答有效,输出回答
print(b)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK