1、

>>> def a():     ## 创建函数
    print("helloworld!")

    
>>> a()
helloworld!      ## 调用函数
>>>