Possible to create an object, assign it to a variable, and add variable to a list in one line?

前端 未结 0 1099
我在风中等你
我在风中等你 2020-12-21 04:39

I have a class and a list. I want to be able to create potentially a few hundred objects with the class, assign them to unique variables, and append them to a list. The vari

相关标签:
回答
  • 消灭零回复
提交回复
热议问题