gpt4 book ai didi

python - 将列表的列表子索引到 block 矩阵 X = [ [A, B], [C, D]]

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:29:10 24 4
gpt4 key购买 nike

<分区>

X = [[2,3, 5, 6], 
[4,5, 9, 10],
[6,1, 3, 9],
[3,7, 11, 12]]

如何输出满足 X = [ [A, B], [C, D]] 的子矩阵?

    A = [[2, 3], 
[4,5]]
B = [[5,6],
[9, 10]]
C = [[6, 1],
[3,7]]
D = [[3,9],
[11, 12]]

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com