擅长:python、mysql、java
<pre><code>start = 0
nested = []
your_list = your_list[::-1]
for i in range(len(your_list)):
if str(your_list[i]).startswith('T'):
nested.append(your_list[start:i])
start = i
# [[], ['T0000093', 'I717', 'I491', 'I82', 'I345', 'I423', 2469.0], ['T0000166', 'I4', 'I425', 3534.0], ['T0000256', 'I558', 'I325', 'I242', 'I523', 'I568', 'I207', 'I137', 'I15', 'I477', 8467.0]]
</code></pre>
<p>最后把空的盒子搬走</p>