目前试图创建在游戏中钓鱼BOT和我尝试循环结束它是运行到一个路障:[error] SyntaxError ("no viable alternative at input '<EOF>'",)
试图在游戏中创建一个钓鱼机器人。刚开[错误]的SyntaxError(“在输入‘<EOF>’没有可行的替代方案”)
下面是代码:
try:
if exists("1483151573805.png", 0):
type(e)
elif exists("1483151836936.png", 0):
type(q)
elif exists("1483151858883.png", 0):
type(a)
elif exists("1483151876662.png", 0):
type(c)
elif exists("1483151893311.png", 0):
type(d)
elif exists("1483151920671.png", 0):
type(w)
elif exists("1483151961233.png", 0):
type(s)
elif exists("1483151974103.png", 0):
type(x)
elif exists("1483152019157.png", 0):
type(z)
而且,这将是对这个循环的最有效的方法是什么?
谢谢!
哪里循环? –