Python 调用函数

调用函数

要调用一个函数,请使用函数名后跟括号:

实例

def my_function():
  print("Hello from a function")

my_function()

亲自试一试

相关页面

教程:

术语: