📅  最后修改于: 2022-03-11 14:45:44.327000             🧑  作者: Mango
# Distribute a local Python collection to form an RDD
>>> sc.parallelize([0, 2, 3, 4, 6], 5).glom().collect()
[[0], [2], [3], [4], [6]]
>>> sc.parallelize(xrange(0, 6, 2), 5).glom().collect()
[[], [0], [], [2], [4]]