<filename>spark/example/count.py
import pyspark

print("*****", pyspark.SparkContext().parallelize(range(0, 10)).count(), "*****")

<filename>spark/example/count.py
import pyspark

print("*****", pyspark.SparkContext().parallelize(range(0, 10)).count(), "*****")
