擅长:python、mysql、java
<p>@harsh kothari,{a1}说</p>
<blockquote>
<p>Importantly, the original board should be left unmodified: since Minimax will ultimately require considering many different board states during its computation. This means that simply updating a cell in board itself is not a correct implementation of the result function. You’ll likely want to make a deep copy of the board first before making any changes.</p>
</blockquote>
<p>为了避免子列表被修改,我们使用deepcopy而不是copy</p>
<p><a href="https://www.programiz.com/python-programming/shallow-deep-copy" rel="nofollow noreferrer">Read more about copy() and deepcopy() here</a></p>