Python——函数

python学习网 2017-09-07 20:27:02

Python函数的定义的方法:

def test():         #设置一个函数名称
    #test            #注释函数作用
    print('函数式编程')  #函数程序处理逻辑
    return 0         #定义返回值

 

阅读(824) 评论(0)