我正在努力理解下面代码块中的以下错误:
if o == None or t == None:
try:
elif o == 1 and t == 1:
c1 = c1 + 1
elif o == -1 and t == -1:
c2 = c2 + 1
elif o == -1 and t == 1:
i1 = i1 + 1
elif o == 1 and t == -1:
i2 = i2 + 1
return (c1, i1, c2, i2)
错误 :
elif o == 1 and t == 1:
^
Syntax error : invalid syntax
谁能指出我做错了什么?我在程序中遵循了正确的缩进。