Home > Article > Backend Development > What does def in python mean?
define means, used to define functions.
For example:
def Function name (parameter 1, parameter 2, ..., parameter N): Execution statement
# 例:简单的函数使用 # 定义函数 def hello(): print 'hello python!' # 调用函数 hello()
>>> hello python!
Recommended related tutorials: Python video tutorial
The above is the detailed content of What does def in python mean?. For more information, please follow other related articles on the PHP Chinese website!