我有一项任务可以计算更新<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button class="BubbleSort">BubbleSort</button>
<button class="SelectionSort">Selection Sort</button>
<button class="CocktailSort">Cocktail Sort</button>
<p>Bubble Sort </p>
<div class="graph graphContainer1">
</div>
<p>Selection Sort </p>
<div class="graph graphContainer2">
</div>
<p>Cocktail Sort </p>
<div class="graph graphContainer3">
</div>
到新variable = data_dict
(删除了一些行),因此我将variable = data_dict_cleaned
转换为数组以删除某些行。这是我遇到问题,因为我需要计算改进变量(data_dict_cleaned
)中的数据记录数。我需要一种方法来计算“data_dict_cleaned
”中的数据记录数,因为正常的迭代不起作用(不能迭代0-d数组)
感谢您的时间和精力。