📜  如何在python代码示例中编写函数

📅  最后修改于: 2022-03-11 14:47:03.596000             🧑  作者: Mango

代码示例6
# We use the def keyword to write a function in python
# Format: def function_name():
# For example:
def Bark():
  print("Bark! Bark!")

# If we want to run the function
Bark()