我的代码是这样的:
Traceback (most recent call last):
File "list_of_dir.py", line 122, in <module>
a.sort_func()
File "list_of_dir.py", line 91, in sort_func
self.avg_func(self.nfp_temp_data)
File "list_of_dir.py", line 101, in avg_func
self.dict[i[0]].append(i[0])
AttributeError: 'int' object has no attribute 'append'
上面是代码片段,数据数组看起来像这样
{{1}}
我收到此错误:
{{1}}
我想要的是键&gt;&gt; 70,80,90,100,110被赋值为近似值+ -5