西班牙
斯潘4
你好!
我正在学习使用蟒蛇。我想将一个属性写入一个新属性。我的代码运行正常,但不会将值(数据)写入新属性(item_no)。
我的错误在哪里?
类featureprocessor(object):def\uu init(self):传递def input(self,feature):对于范围(10)中的n:new_feature=feature.clone()data=feature.getattribute('data')new_feature.setattribute('item_no',data)self.pyoutput(new_feature)def close(self):传递
?2019安全亚搏在线软件公司|合法的