grid.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:pysheds 作者: mdbartos 项目源码 文件源码
def _select_surround(self, i, j):
        """
        Select the eight indices surrounding a given index.
        """
        return ([i - 1, i - 1, i + 0, i + 1, i + 1, i + 1, i + 0, i - 1],
                [j + 0, j + 1, j + 1, j + 1, j + 0, j - 1, j - 1, j - 1])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号