函数编程和过程编程的区别
__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)
本文共 306 字,大约阅读时间需要 1 分钟。
函数编程和过程编程的区别
__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)
转载于:https://www.cnblogs.com/xgzx/p/8623248.html