Creating a list filled with new instances of an object

前端 未结 4 497
情深已故
情深已故 2021-01-11 12:04

What\'s the best way to create a list with an arbitrary number of instances of the same object? i.e is there a more compact or efficient way to do the following?

<         


        
4条回答
提交回复
热议问题