2025年02月21日 MongoDB Python51
def是define的意思,用来定义函数。
如:
def 函数名(参数1, 参数2, ……, 参数N): 执行语句
# 例:简单的函数使用
# 定义函数 def hello(): print 'hello python!' # 调用函数 hello()
本文链接:http://so.lmcjl.com/news/23585/