擅长:python、mysql、java
<pre><code>self.board = 9*['[]']
def createboard(self):
for i,j in enumerate(board, 1):
print(j)
if i%3 == 0: print('\n')
</code></pre>
<p>看看python教程:<a href="https://docs.python.org/3/tutorial/" rel="nofollow noreferrer">https://docs.python.org/3/tutorial/</a></p>