首页 > 编程语言 > 详细

python——函数和过程的区别

时间:2018-03-22 13:57:51      阅读:218      评论:0      收藏:0      [点我收藏+]

函数编程和过程编程的区别

__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)

  

python——函数和过程的区别

原文:https://www.cnblogs.com/xgzx/p/8623248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!