📜  如何在python代码示例中添加函数

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

代码示例1
#How to define a function

def new_function(): #Creates a new function
  print("Function is here!") #Here we write what we want our function to do
  
#How to call a funtion

new_function() #Just type in the fuction's name and add brackets after it!