arcpy发布地图服务

#检查地图是否有错误nnnimport arcpy.mapping as mappingnmxdpath=r”C:\Users\h\Desktop\fp.mxd”nwrkspc = r’d:’nmxd = mapping.MapDocument(wrkspc + r”\fp.mxd”)nnservice = ‘Crime’nsddraft = wrkspc + service + ‘.sddraf…