比如在零矩阵里选出等边三角形区域并使区域内元素为1,主要不知道怎么确定三角形。
https://blog.csdn.net/weixin_41971010/article/details/107149457?spm=1001.2014.3001.5501可以参考一下我的博客