TypeError: unsupported operand type(s) for +: ‘geoprocessing value object‘ and ‘str‘ if self.params[0].value: mypath=self.params[0].value # cpath=mypath+os.sep+dataset arcpy.env.workspace =cpath 修改如下: if self.params[0].value: mypath=str(self.params[0].value) # cpath=mypath+os.sep+dataset arcpy.env.workspace =cpath
python TypeError: unsupported operand type(s) for +: 'geoprocessing value object' and 'str'
原文地址:https://www.cnblogs.com/gisoracle/p/11785622.html
时间: 2024-10-15 21:40:47