ArcGIS python tool没有许可,按掩膜提取

narcpy.CheckOutExtension(“spatial”)#打开软件许可narcpy.gp.overwriteOutput=1#覆盖之前文件noutExtractByMask = ExtractByMask(tifPath,shpPath)#按掩膜提取nn