需要tmp.shp文件和tmp.dbf文件,需要安装geopandas第三方库,python3代码如下,
tmp.shp
tmp.dbf
geopandas
import geopandas as gpd shp_file_path = "tmp.shp" shp_data = gpd.read_file(shp_file_path) for index, row in shp_data.iterrows(): print(row) print(row["group_link"]) break
输出示例,