我遇到了以下语法来创建一个 python 数组。这对我来说很奇怪。
谁能给我解释一下?我应该如何学习这种语法?
[str(index) for index in range(100)]
python list-comprehension
list-comprehension ×1
python ×1