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

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

代码示例1
# 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()