摘要: 使用多线程的方式1、函数式:使用threading模块threading.Thread(e.g target name parameters) 1 import time,threading 2 def loop(): 3 print("thread %s is running..." % ... 阅读全文
posted @ 2014-11-28 15:31 AlexBai326 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1. 选择排序----def selectSort(l): for i in range(len(l)): j = i + 1 t_min = l[i] loc_min = i for j in range(j,len(l)): ... 阅读全文
posted @ 2014-11-28 10:43 AlexBai326 阅读(195) 评论(0) 推荐(0) 编辑