摘要: 程序并不能单独运行,只有将程序装载到内存中,系统为它分配资源才能运行,而这种执行的程序就称之为进程。程序和进程的区别就在于:程序是指令的集合,它是进程运行的静态描述文本;进程是程序的一次执行活动,属于动态概念。 在多道编程中,我们允许多个程序同时加载到内存中,在操作系统的调度下,可以实现并发地执行。 阅读全文
posted @ 2016-03-16 18:04 gopher-lin 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 def demo(data,temp): for i in range(len(data)-1): if data[i] == temp : print i break else: print u'没有满足条件的数字' if __name__ == "__... 阅读全文
posted @ 2016-03-16 17:11 gopher-lin 阅读(85) 评论(0) 推荐(0) 编辑
摘要: array = [1,2,3,6,5,4] for i in range(len(array)): for j in range(i): if array[j] > array[j + 1]: array[j], array[j + 1] = array[j + 1], array[j] print array print ... 阅读全文
posted @ 2016-03-16 16:44 gopher-lin 阅读(86) 评论(0) 推荐(0) 编辑
摘要: def demo(data): for i in range(len(data)-1,0,-1): positon_max = 0 for k in range(i): if data[positon_max] > data[k]: positon_max = k data[i],data[positon... 阅读全文
posted @ 2016-03-16 16:43 gopher-lin 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 计算机的基本由四大部分组成。 一、CPU。也是我们经常称的中央处理器。也是我们计算机最重要的资源,我暂时称之为‘大脑’。 二、Memory。 内存,这对大家都不陌生,因为没一个应用程序都需要被加载到Memeory里面后,CPU 才可以对其进行执行。 它是易失性的,断电之后数据就会丢失。内存我还是称之 阅读全文
posted @ 2016-03-16 16:06 gopher-lin 阅读(125) 评论(0) 推荐(0) 编辑
摘要: http://python.jobbole.com/81478/ 阅读全文
posted @ 2016-03-16 16:01 gopher-lin 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import htmllib import httplib2 import httplib h1 = httplib.HTTPConnection("www.python.org") h1.request("GET", "/") r1 = h1.getresponse() print r1.status, r1.reason data1 = r1.read() ... 阅读全文
posted @ 2016-03-16 16:00 gopher-lin 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 学习: 阅读全文
posted @ 2016-03-16 15:01 gopher-lin 阅读(271) 评论(0) 推荐(0) 编辑
摘要: http://python.jobbole.com/84153/ 阅读全文
posted @ 2016-03-16 14:36 gopher-lin 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://python.jobbole.com/84130/ 阅读全文
posted @ 2016-03-16 14:32 gopher-lin 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 数据结构的定义是指数据之间充存储结构,算法是指处理数据的方式 数据结构可以分为两类是存储结构也可以成为物理结构,还有事逻辑结构,他是数据结构呈现在用户面前的方式 阅读全文
posted @ 2016-03-16 09:33 gopher-lin 阅读(83) 评论(0) 推荐(0) 编辑