摘要: 对象持久话与pickle模块Table of Contents1. 什么是持久性2. 对象持久性的几种模式2.1. 对象-关系映射(ORM)2.2. 主动域对象模式2.3. JDO模式2.4. CMP 模式3. python的对象持久性4. 一些经过pickle的 Python5. Pickle 的... 阅读全文
posted @ 2015-12-15 20:01 小名辉辉 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Table of Contents1. 简单了解函数1.1. 函数是什么1.2. 函数的好处1.3. 函数和过程的区别1.3.1. python的函数和过程1.3.2. common lisp中的函数(简述)1.4. 函数定义1.5. function的赋值和执行2. function 和 obje... 阅读全文
posted @ 2015-11-23 16:55 小名辉辉 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: 题目:我的解法: 1 def checkio(text): 2 import string 3 str = text.encode().lower() 4 adict = {} 5 for i in string.lowercase[::-1]: 6 ... 阅读全文
posted @ 2015-04-09 19:23 小名辉辉 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 我的解决方式:1 def checkio(data):2 alist = []3 for i in data:4 if (data.count(i) >1 ):5 alist.append(i)6 7 return a... 阅读全文
posted @ 2015-04-09 17:23 小名辉辉 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 参考文献: http://www.cnblogs.com/gannan/archive/2012/02/06/2339883.htmlpydoc paramikoparamiko简介paramiko是用python语言写的一个模块,遵循SSH2协议,支持以加密和认证的方式,进行远程服务器的连接。由于... 阅读全文
posted @ 2014-05-09 17:43 小名辉辉 阅读(805) 评论(0) 推荐(0) 编辑