摘要: 实现效果 首先实现横向 取模 也叫求余数 0~2 = 0, 3~5 = 1 ....... 可以确定行的交替 int colIndex = index % 3; 首先实现纵向 整除 0~2 = 0, 3~5 = 1 ....... 可以确定行的交替 int rowIndex = index ~/ 3 阅读全文
posted @ 2024-01-30 11:08 vx_guanchaoguo0 阅读(1) 评论(0) 推荐(0) 编辑