Hello everyone, I want to achieve the above effect by python, but how to implement it.
Thanks
You might want to examine the code samples in arcpy's mapping module, for instance
Layer—ArcGIS Pro | Documentation