1.2.4.1 函数的定义

In [21]:

  1. def test():
  2. print('in test function')
  3. test()
  1. in test function

注意:函数块必须像其他流程控制块一样缩进