摘要: 常用的数据库有哪些? oralce,sqlserver,mysql,db2 有钱就用oracle吧 oracle和mysql的区别:https://zhidao.baidu.com/question/873189907459674772.html?skiptype=2 mysql安装 想要使用MyS 阅读全文
posted @ 2016-10-20 11:27 noube 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 协程 协程就是一种用户态内的上下文切换技术. 1.使用gevent实现协程, gevent.spawn()调用函数, gevent.sleep(1) 模拟阻塞,实现切换. 1 import gevent 2 import time 3 4 5 def foo(): 6 print('running 阅读全文
posted @ 2016-10-12 16:39 noube 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 提到网络通信不得不复习下osi七层模型: 七层模型,亦称OSI(Open System Interconnection)参考模型,是参考模型是国际标准化组织(ISO)制定的一个用于计算机或通信系统间互联的标准体系。它是一个七层的、抽象的模型体,不仅包括一系列抽象的术语或概念,也包括具体的协议。 OS 阅读全文
posted @ 2016-09-29 09:54 noube 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1、如何创建类 class 类名: pass 2、创建方法 构造方法,__init__(self,arg) obj = 类('a1') 普通方法 obj = 类(‘xxx’) obj.普通方法名() 3、面向对象三大特性之一:封装 class Bar: def __init__(self, n,a) 阅读全文
posted @ 2016-09-27 10:12 noube 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1、如何创建类 class 类名: pass 2、创建方法 构造方法,__init__(self,arg) obj = 类('a1') 普通方法 obj = 类(‘xxx’) obj.普通方法名() 3、面向对象三大特性之一:封装 class Bar: def __init__(self, n,a) 阅读全文
posted @ 2016-09-22 11:58 noube 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 需求如下: 1. 1 #定义商品列表类 2 # def shangpin_list(): 3 # for i in com_list: 4 # print(com_list.index(i),end=" ") 5 # for j in i: 6 # print(j,end=" ") 7 # prin 阅读全文
posted @ 2016-08-24 19:03 noube 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 2016-08-24 14:32:59 list Python内置的一种数据类型是列表:list。list是一种有序的集合,可以随时添加和删除其中的元素。 例如:定义一个列表L,里面存放了一些姓氏。print(l)就输入了整个列表。 对列表的操作一般为:增、删、改、查。 查: 用下标取列表中的值,第 阅读全文
posted @ 2016-08-24 18:44 noube 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.linuxidc.com/Linux/2015-06/118856.htm 像任何其他的操作系统一样,GNU/Linux 已经实现的内存管理不仅有效,而且更好。但是,如果有任何进程正在蚕食你的内存,而你想要清除它的话,Linux 提供了一个刷新或清除RAM缓存方法。 阅读全文
posted @ 2016-07-06 15:56 noube 阅读(666) 评论(0) 推荐(0) 编辑
摘要: [root@vmbbak yum]# unzip RHEL_5.7\ x86_64\ DVD-1.zip error: Zip file too big (greater than 4294959102 bytes)Archive: RHEL_5.7 x86_64 DVD-1.zipwarning 阅读全文
posted @ 2016-07-01 15:59 noube 阅读(3779) 评论(0) 推荐(0) 编辑