我正在用 python 制作一个聊天机器人,但是当我执行代码时,我收到了一个 eof 错误 这是代码:
ai_talked= "0"
textreadyyet="no"
playermessage = input("Talk here:")
def playertalk():
while textreadyyet=="no":
if textreadyyet== "Yes":
print(playermessage)
else:
textreadyyet= "Yes"
print(playermessage)
playertalk()
print(playermessage)
def aialk():
if ai_talked=="0":
print("Hello!")
aialk()
它在第三行给出了一个 eof 错误