python中的def语句是什么意思
python中的def语句是define的意思,用来定义函数。用法为:“def 函数名(参数1, 参数2, ……, 参数N): 执行语句”。
def是define的意思,用来定义函数。
如:
def 函数名(参数1, 参数2, ……, 参数N): 执行语句
# 例:简单的函数使用
# 定义函数 def hello(): print 'hello python!' # 调用函数 hello()
您可能感兴趣的文章:
python中的def语句是什么意思
python中num是什么意思
python中int是什么意思
python装饰器是什么
python的def是什么意思
python中fun是什么意思
python中map什么意思
python中flag什么意思
int在python中什么意思
python里int什么意思