python :practice function return

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 

   

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