擅长:python、mysql、java
<p>显然,您误用了stream的“readAll”函数。在</p>
<pre><code>for (i <- i to startList.length ) {
for(row <- masterList.readAll)
if (row(0) > startList(i) && row(0) < startList(i+1)) {
derivedList += row
}
}
</code></pre>
<p>在第一个readAll函数之后,第二个函数无法读取任何内容,因为第一个readAll使流指针指向文件末尾,因此需要重置strampoint。在</p>