回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<p>我试图从以下三个列表中创建一个矩阵或数据帧:</p>
<pre><code>x = ["col1","col2","col3","col4","col5","col6","col7","col8","col9","col10"]
y = ["a","b","c"]
z = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
</code></pre>
<p>我的目标是得到一个如下所示的数据帧:</p>
<pre><code> col1 col2 col3 col4 col5 col6 col7 col8 col9 col10
a 1 2 3 4 5 6 7 8 9 10
b 11 12 13 14 15 16 17 18 19 20
c 21 22 23 24 25 26 27 28 29 30
</code></pre>