创建并调用函数

  1. def my_function():
  2. print("Hello from a function")
  3.  
  4. my_function()