Python 函数 Python 术语表 创建函数 在 Python 中,函数是使用 def 关键字定义的: 实例 def my_function(): print("Hello from a function") 相关页面 教程: Python 函数 术语: 调用函数 函数参数 *args 关键字参数 **kwargs 默认参数值 将列表作为参数传递 函数返回值 函数中的 pass 语句 函数递归 Python 术语表