我对扑扑和飞镖是全新的。我搜索过谷歌,我能找到的只是如何在颤振中制作一维列表。我需要一张价值观图表。
具体来说,我需要一行 12 长、一列 31 长,并填充升序数字
1, 32, 63,
2, 33, 64,
3, 34, 65, etc....
thanks!
int row = 3;
int col = 4;
var twoDList = List<List>.generate(row, (i) => List<dynamic>.generate(col, (index) => null, growable: false), growable: false);
//For fill;
twoDList[0][1] = "deneme";
print(twoDList);
// [[null, deneme, null, null], [null, null, null, null], [null, null, null, null]]
您的 2D 列表有 3 行和 4 列。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)