在Vs代码中的第一个“或”上获取无效的语法错误

问题描述

我真的不知道这里出了什么问题。

def winner(board,letter):
#below is the winning combination. If any of the combination matches the winner is gonna be declared
    (board['top-L'] == letter and board['top-M'] == letter and board['top-R'] == letter) **or**
    (board['low-L'] == letter and board['low-M'] == letter and board['low-R'] == letter) or
    (board['mid-L'] == letter and board['mid-M'] == letter and board['mid-R'] == letter) or
    (board['top-L'] == letter and board['mid-L'] == letter and board['low-L'] == letter) or
    (board['top-M'] == letter and board['mid-M'] == letter and board['low-M'] == letter) or
    (board['top-R'] == letter and board['mid-R'] == letter and board['low-R'] == letter) or
    (board['top-L'] == letter and board['mid-M'] == letter and board['low-R'] == letter) or
    (board['top-R'] == letter and board['mid-M'] == letter and board['low-L'] == letter) or

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)