https://codingnote.cc/zh-tw/p/447875/
Python3实现Two-Pass算法检测区域连通性