你好我在用盒計(jì)數(shù)法算網(wǎng)絡(luò)分形維數(shù)時(shí),要來(lái)的python軟件出現(xiàn)了錯(cuò)誤。有四行,您幫我看看行嗎。這方面我不懂
Traceback (most recent call last):
File "E:\python\box3.1.py", line 124, in <module>
NB=Random_divide_boxes(level,filename,lb,times)#filename: the filename of the intitial data,times:the randomly tried times
File "E:\python\box3.1.py", line 87, in Random_divide_boxes
size,newnet,content=box_counting.box_counting(net,length)
File "C:\Python26\lib\box_counting.py", line 176, in box_counting
net,index=randomize_net()#randomize the net
File "C:\Python26\lib\box_counting.py", line 150, in randomize_net
tempnet[index[i]].add(index[node])
IndexError: tuple index out of range
>>>
|