我在Jupyter notebook中有以下代码,它打印radiuslist,但只迭代结果列表的第一个结果。areacirclelist(radiuslist)
print ('For the circle with radii of ', radiuslist, 'the areas are', arealist) 非常感谢你的帮助
我得到了这个错误:index out of range, in if largerList[j] == smallerList[i]。我正在做一个关于二进制搜索树的作业,我把树放到列表中,我只是想比较这两个列表: def matchList(largerList, smallerList) : matches[i] = sm