擅长:python、mysql、java
<p>如果<code>m</code>是一个矩阵,您可以通过</p>
<pre><code>sage: mm = m[:, :]
</code></pre>
<p>或者</p>
<pre><code>sage: mm = matrix(m)
</code></pre>
<p>要理解复制列表和矩阵等容器结构的需要,可以阅读<a href="https://doc.sagemath.org/html/en/thematic_tutorials/tutorial-objects-and-classes.html" rel="nofollow noreferrer">the tutorial on objects and classes in Python and Sage</a>。你知道吗</p>
<p>也推荐<a href="https://doc.sagemath.org/html/en/thematic_tutorials/" rel="nofollow noreferrer">other Sage tutorials</a>!你知道吗</p>