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

常用算法

时间:2017-12-23 01:07:23      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:post   blog   二分查找   func   nbsp   顺序   列表   顺序查找   class   

递归(复习)

特点:

调用自身

结束条件

def func1(x):
if x>0:
func1(x-1)
print(x)
func1(10)

列表查找

顺序查找

二分查找

 

 







常用算法

标签:post   blog   二分查找   func   nbsp   顺序   列表   顺序查找   class   

原文地址:http://www.cnblogs.com/liumj0305/p/8088092.html

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