代码示例:(标识:python_function)
python_function.py
def my_function():
  print("Hello from a function")

my_function()
运行结果: