📜  python代码示例中的平面图

📅  最后修改于: 2022-03-11 14:47:03.888000             🧑  作者: Mango

代码示例2
data = ["Project Gutenberg’s",
        "Alice’s Adventures in Wonderland",
        "Project Gutenberg’s",
        "Adventures in Wonderland",
        "Project Gutenberg’s"]
rdd=spark.sparkContext.parallelize(data)
for element in rdd.collect():
    print(element)