码迷,mamicode.com
首页 > 编程语言 > 详细

python :practice function return

时间:2020-03-13 20:20:20      阅读:54      评论:0      收藏:0      [点我收藏+]

标签:row   object   res   ice   bsp   value   nts   define   ret   

define function .return value is required.

instance:

 def   f():

    print(‘hello world‘)

    return 10   # return represents two replications.

                           1:process is execute over.

                           2:return some object to function

    print(‘ok will’)  # the row will not be executed

instance:

 def 

   

 

python :practice function return

标签:row   object   res   ice   bsp   value   nts   define   ret   

原文地址:https://www.cnblogs.com/alansuny/p/12488542.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!