递归的作用?

例子10除以2得到的结果一直除以2直到零为止!

用递归来做:

def  count(n):

  v = int(n/2)

  print(v)

  if v == 0:

    return 'Done'

  count(v)

原文地址:https://www.cnblogs.com/kingforn/p/10893017.html