如何解决在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 举报,一经查实,本站将立刻删除。