Con(IsNull(raster),0,raster) 但是以下代码中得到的栅格计算结果是异常的 import arcpy from arcpy.sa import * raster=r"D:\data\林地.tif" arcpy.env.extent = raster arcpy.CheckOutExtension("Spatial") out_A_Calculator=RasterCalculator([raster],[raster],Con(IsNull(raster),0,raster)) out_...