函数编程和过程编程的区别
__author__ = "Alex Li" #函数编程 def func1(): """testing1""" print(‘in the func1‘) return 0 #过程编程 def func2(): ‘‘‘testing2‘‘‘ print(‘in the func2‘) x=func1() y=func2() print(‘from func1 return is %s‘ %x) print(‘from func2 return is %s‘ %y)
标签:author pre test 过程 ret pos testing body auth
函数编程和过程编程的区别
__author__ = "Alex Li" #函数编程 def func1(): """testing1""" print(‘in the func1‘) return 0 #过程编程 def func2(): ‘‘‘testing2‘‘‘ print(‘in the func2‘) x=func1() y=func2() print(‘from func1 return is %s‘ %x) print(‘from func2 return is %s‘ %y)
标签:author pre test 过程 ret pos testing body auth
原文地址:https://www.cnblogs.com/xgzx/p/8623248.html