🌈 搜索
📅  最后修改于: 2022-03-11 14:45:25.001000             🧑  作者: Mango
rdd = sc.parallelize(["b", "b", "c"]) sorted(rdd.map(lambda x: (x, 1)).collect()) # [('a', 1), ('b', 1), ('c', 1)]