首页 > 编程语言 > 详细

Python函数

时间:2017-07-06 18:29:22      阅读:360      评论:0      收藏:0      [点我收藏+]

#!/usr/bin/env python

#coding:utf-8


def func1():

    print(‘in the func1‘)

    return 0


def func2():

    print(‘in the func2‘)


x=func1()

y=func2()


print(‘from func1 return is %s‘ % x)

print(‘from func2 return is %s‘ % y)

技术分享

技术分享


技术分享

技术分享


技术分享


技术分享


技术分享


技术分享

技术分享




本文出自 “YHT的运维笔记” 博客,请务必保留此出处http://yht1990.blog.51cto.com/9014030/1945013

Python函数

原文:http://yht1990.blog.51cto.com/9014030/1945013

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