``` for(int i=1;i<=4;i++){ ... } ``` 应该是从0开始循环,因为您定义时: ``` int py[4][2]={{1,0},{0,1},{-1,0},{0,-1}}; ``` by lxuyinc @ 2023-05-15 22:38:29