originLayerName = "" mxd = arcpy.mapping.MapDocument(r"CURRENT") originLayer = arcpy.mapping.ListLayers(mxd, originLayerName)[0] layers = arcpy.mapping.ListLayers(mxd) for lyr in layers: if lyr.name == originLayer.name: continue if (originLayer.isFeatureLayer and lyr.isFeatureLayer) or (originLayer.isRasterLayer and lyr.isRasterLayer): arcpy.ApplySymbologyFromLayer_management(in_layer=lyr, in_symbology_layer=originLayer)参考:https://blog.csdn.net/qq_41127811/article/details/112512904 标签:layer,lyr,arcpy,mapping,originLayer,ArcMap,图层,ArcPy,mxd From: https://www.cnblogs.com/2008nmj/p/17565530.html