lllymka Asked:2022-07-07 19:48:20 +0000 UTC2022-07-07 19:48:20 +0000 UTC 2022-07-07 19:48:20 +0000 UTC 飞镖中的列表表达式 772 在 python 中,您可以创建一个这样的列表:lst = [i for i in range(10)] 可以在飞镖中做到这一点吗?(在 1 行中) dart 1 个回答 Voted Best Answer Spatz 2022-07-07T19:56:17Z2022-07-07T19:56:17Z 列表有一个命名的构造函数generate: List<int>.generate(10, (int index) => index)
列表有一个命名的构造函数generate: