我尝试运行一个脚本,这是一个基于截图的谷歌问题的机器人。有点难以解释,但是。
我尝试通过
运行脚本def getContinue():
response = input('Do you want to continue (y:n): ')
while response not in ('y', 'n', 'Y', 'N'):
response = input('Do you want to continue (y:n): ')
if response in ('y', 'Y'):
return 'y'
else:
return 'n'
我收到此错误
python answer_bot.py
我正在尝试运行的脚本是:
https://github.com/sushant10/HQ_Bot/blob/12f774c9f4b231aa8a0326f133ac968febf5241b/answer_bot.py