是否有一个函数,我可以用来迭代一个数组并同时具有索引和元素,如python的枚举?
for index, element in enumerate(list): ...
arrays swift
arrays ×1
swift ×1