A dictionary or a class is likely to be a better data structure for thread management. As a quick example, below is a class that can (almost) drop in for the threads list in the examples.
字典或类可能是线程管理中更好的数据结构。
To better understand the concept of ownership, look at the stack of stacks data structure together with objects owned by each element.
为了更好地理解所有权关系的概念,可以将栈中栈数据结构与每个元素所拥有的对象结合起来。
It would be better to store the lines in some internal data structure and reuse them directly.
将行储存在内部数据结构中然后直接重用它们会更好。
应用推荐